summaryrefslogtreecommitdiff
path: root/lib/chef/platform
Commit message (Collapse)AuthorAgeFilesLines
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-2/+2
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-1410-28/+28
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-4/+4
| | | | chefstyle -a fixed 1044 occurrances
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-6/+6
|
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-121-1/+1
| | | | useless use of `"#{foo.to_s}"`
* WMF 5 RTM and Win 10 Threshold 2 allow the RefreshMode to be enabled.Steven Murawski2015-11-181-3/+14
|
* support split-usr on ubuntu platformsNathan Williams2015-10-231-2/+2
|
* fix specsNathan Williams2015-10-231-2/+2
|
* move gross non-service "services" to separate detection methodNathan Williams2015-10-231-5/+13
|
* re-sync with masterNathan Williams2015-10-232-25/+72
|\
| * Make service_providers return the providersJohn Keiser2015-09-281-6/+10
| |
| * Get rid of state-keeping and reset in ServiceHelpersjk/systemctl-shenanigansJohn Keiser2015-09-281-31/+19
| |
| * Add test for nonzero systemctl exit codeJohn Keiser2015-09-281-11/+12
| |
| * Add system providers to the list of world-stubbed stuffJohn Keiser2015-09-281-0/+5
| |
| * return empty array if no services foundRanjib Dey2015-09-281-1/+1
| |
| * Lazy load MSI provider, add check for MSI supportsalam/lazy-msiSalim Alam2015-09-221-0/+16
| |
| * Don't add win_evt logger when on nano.Claire McQuin2015-09-181-1/+23
| |
| * Rename refresh_mode_disabled? to dsc_refresh_mode_disabled?mcquin/dsc_resource_specClaire McQuin2015-09-081-1/+1
| |
| * Skip tests unless RefreshMode is DisabledClaire McQuin2015-09-081-0/+7
| |
* | add support for non-service unitsNathan Williams2015-09-011-1/+2
| |
* | support service names like redis@6380 derived from units like redis@.serviceNathan Williams2015-08-291-1/+1
| |
* | Revert "include systemd in configs if init.d on systemd-based system"Nathan Williams2015-08-281-1/+0
| | | | | | | | | | | | I'm not actually sure where this is used, so maybe leave it be. This reverts commit 5a78ea32aaaee75265086c27d273f5c7dc1c111e.
* | include systemd in configs if init.d on systemd-based systemNathan Williams2015-08-281-0/+1
| |
* | ::FileNathan Williams2015-08-281-1/+1
| |
* | simplify service helpersNathan Williams2015-08-281-40/+9
|/
* Fix error message for providers without `provides`Christian Höltje2015-08-191-6/+5
| | | | | | | | | | | The warning incorrectly said that the provider was missing `resource_name :resource` when it should have said it was missing `provides :resource` I also switched from using `begin`...`rescue` since it isn't needed and needlessly slow things up. Fixes #3614
* Add ability to specify dependencies in chef-service-manager.Kartik Null Cating-Subramanian2015-07-241-4/+1
|
* Merge pull request #3684 from coderanger/remove-warningNoah Kantrowitz2015-07-231-5/+0
|\ | | | | Remove warnings about hander overrides.
| * Remove warnings about hander overrides.Noah Kantrowitz2015-07-191-5/+0
| | | | | | | | | | | | | | These are high-volume, difficult to silence, and often not actually an error (in which case they may be impossible to silence forever). Worse, doing what the error says and setting override:true without understanding what that does can have unexpected effects (https://github.com/jssjr/git/issues/71).
* | Correct Windows reboot command to delay in minutesJimmy McCrory2015-07-191-1/+1
|/ | | | | Correct the command used to reboot Windows machines so that it converts a given delay_mins option to the appropriate number of seconds.
* Memoize enabled_handlers so it is not recomputedjk/separate-priority-mapJohn Keiser2015-07-062-0/+36
|
* Re-separate priority map and DSL handler map so that provides has veto power ↵John Keiser2015-07-065-43/+85
| | | | over priority
* Optimize logic on class initialize so it doesn't fall into theJohn Keiser2015-06-301-1/+7
| | | | | | "look at all classes to see if they provide the DSL" else clause when you're just setting resource_name (which happens on every class). Perf fix for tests.
* Call provides? when resolving, reduce number of calls to provides?John Keiser2015-06-301-2/+2
| | | | in Provider
* Fix to allow LW resources to be used with HW providersjdm/lwrp-fixJay Mundrawala2015-06-241-1/+2
| | | | | | | | | | | | | | This should fix sethvargo-cookbooks/swap#22 Here's what was happening: The cookbooks creates a Resource using the LWRP base. This dynamically creates a class. We used to create this class with the name Chef::Resource::SomeResourceName. In 12.4, this change to something like "LWRP resource some_resource_name from cookbook CookbookName". When searching for a provider, it couldn't be found because it wasn't explicitly set, as it would have been if it was a LW provider, and it wasn't found in Chef::Provider, because Chef::Provider had a provider SomeResourceName instead of "LWRP resource some_resource_name from cookbook CookbookName".
* Use the right call.Noah Kantrowitz2015-06-191-1/+1
| | | set_priority_array is the right thing for this.
* Re-add #priority.Noah Kantrowitz2015-06-191-0/+4
| | | Possible fix for https://github.com/chef/chef/issues/3561.
* Sort identical "provides" alphabetically (for backcompat)John Keiser2015-06-184-45/+60
| | | | - Warn when multiple providers try to provide the same thing
* Make sure resource_name :x only removes automatic provides from that classJohn Keiser2015-06-081-2/+2
|
* Overwrite resource_name with providesJohn Keiser2015-06-081-2/+2
|
* Make use_automatic_resource_name automaticJohn Keiser2015-06-082-4/+7
|
* Create tests for all previous provider_mappingsjk/one_map_to_rule_them_allJohn Keiser2015-06-021-1/+1
|
* Fix ifconfig platform version filterJohn Keiser2015-06-022-12/+4
|
* Move provider_mapping values out into the actual resource classesJohn Keiser2015-06-021-266/+1
|
* Narrow resolvers to only look at parts of the map we supportJohn Keiser2015-06-022-6/+8
|
* Use the central priority map for `provides`John Keiser2015-06-022-78/+13
|
* Use executionpolicy Bypass in powershell_script provider for PS 3.0 and lateradamedx2015-05-291-0/+5
|
* Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-5/+1
|
* Package and Service are abstract and should never be usedJohn Keiser2015-05-131-2/+0
|
* Fix exception thrown from deprecation warningJohn Keiser2015-05-131-6/+6
|