diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-06 19:55:22 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-07 11:19:20 -0800 |
commit | bbd87e035bb966e1b4134b809db6bb0c850272a6 (patch) | |
tree | 7329c00c3209ea1ab380d5120548b632831f8aa3 /lib/chef/provider/service | |
parent | d63980c156c042d2badcfc83b9dbe00c8e5cdccb (diff) | |
download | chef-bbd87e035bb966e1b4134b809db6bb0c850272a6.tar.gz |
Remove platfom restrictions in provides and don't require providers
Don't require providers in the resources since we map these automatically. Also remove or simplify the platform restrictions in the provides lines in the resources. We're not really getting anything from these the way we wire up resources.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/service')
-rw-r--r-- | lib/chef/provider/service/macosx.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/service/windows.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/service/macosx.rb b/lib/chef/provider/service/macosx.rb index 9dc7b81a29..a0ae03a717 100644 --- a/lib/chef/provider/service/macosx.rb +++ b/lib/chef/provider/service/macosx.rb @@ -28,7 +28,7 @@ class Chef class Service class Macosx < Chef::Provider::Service::Simple - provides :macosx_service, os: "darwin" + provides :macosx_service provides :service, os: "darwin" def self.gather_plist_dirs diff --git a/lib/chef/provider/service/windows.rb b/lib/chef/provider/service/windows.rb index d370ecff51..ce84f7c4ee 100644 --- a/lib/chef/provider/service/windows.rb +++ b/lib/chef/provider/service/windows.rb @@ -27,7 +27,7 @@ end class Chef::Provider::Service::Windows < Chef::Provider::Service provides :service, os: "windows" - provides :windows_service, os: "windows" + provides :windows_service include Chef::Mixin::ShellOut include Chef::ReservedNames::Win32::API::Error rescue LoadError |