summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_pagefile.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add more examples to resourcesTim Smith2020-04-301-0/+28
| | | | | | Backfilling the world! Signed-off-by: Tim Smith <tsmith@chef.io>
* Add missing examples and resource formatting for docs siteTim Smith2020-04-301-1/+1
| | | | | | Get us closer to automated documentation. Signed-off-by: Tim Smith <tsmith@chef.io>
* More resource formatting and wording updatesTim Smith2020-04-291-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the canonical DSLLamont Granquist2020-03-031-2/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-021-8/+8
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-081-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-1/+1
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* More consist descriptions for resource name propertiesTim Smith2019-02-061-1/+1
| | | | | | This better describes how a name property works. Signed-off-by: Tim Smith <tsmith@chef.io>
* Modify the provides for all resources from cookbooks so chef winsprovidesTim Smith2018-04-061-1/+1
| | | | | | Due to changes in chef-client 14 old cookbooks started winning and this causes lots of problems, especially for old incompatible resources. Chef client should always win here. Signed-off-by: Tim Smith <tsmith@chef.io>
* mechanical conversion of most debug log statements to traceThom May2018-03-261-9/+9
| | | | Signed-off-by: Thom May <thom@chef.io>
* Remove path helpers from window_pagefileTim Smith2018-03-231-38/+19
| | | | | | I backported locate_sysnative_cmd initially, but after chatting with Stuart this isn't something we need anymore. This removes it and instead uses wmic.exe directly, which in testing works just fine. This also removes the windows friendly path helper which is really just a gsub on the slashes. Instead I changed the coerce to get us what we need in terms of path formats. I copied this to a Windows 2016 box and it works fine with both formats of paths. I'm making this same change to the windows cookbook. Signed-off-by: Tim Smith <tsmith@chef.io>
* Pagefile sizes are in megabytes not bytespagefile_docsTim Smith2018-03-211-2/+2
| | | | | | @s1mark reported this in the Windows cookbook Signed-off-by: Tim Smith <tsmith@chef.io>
* Updates from the reviewmisc_resourceTim Smith2018-03-041-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add more description fields, style fixes, add missing requiresTim Smith2018-03-041-0/+2
| | | | | | | | | | | | Make sure to require chef/resource everywhere. It would work without it but only because some other resource had already required it. Put the type on the same line as the property, which we discussed in slack Put introduced after description which makes differing simpler Convert some yard into description fields Signed-off-by: Tim Smith <tsmith@chef.io>
* Add windows auto_run, font, pagefile, printer, printer_port, and shortcut ↵Tim Smith2018-02-231-0/+223
resources Ported from the Windows cookbook Signed-off-by: Tim Smith <tsmith@chef.io>