diff options
author | John Keiser <john@johnkeiser.com> | 2015-05-06 07:59:33 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-02 09:53:39 -0700 |
commit | 9028823f7b046c4c081b1cb1df005d61fbfa1db2 (patch) | |
tree | 74d1fa52adb202a6841148be3b82638a578b1b4e /lib/chef/provider.rb | |
parent | 93f7b74349362d0c698a1080177b94e64248dac6 (diff) | |
download | chef-9028823f7b046c4c081b1cb1df005d61fbfa1db2.tar.gz |
Use the central priority map for `provides`
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r-- | lib/chef/provider.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 42347a230e..52082123cb 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -29,6 +29,9 @@ require 'chef/node_map' class Chef class Provider + require 'chef/mixin/why_run' + require 'chef/mixin/shell_out' + require 'chef/mixin/provides' include Chef::Mixin::WhyRun include Chef::Mixin::ShellOut include Chef::Mixin::PowershellOut @@ -174,6 +177,10 @@ class Chef protected + def self.provides_priority_map + Chef::Platform::ResourcePriorityMap.instance + end + def converge_actions @converge_actions ||= ConvergeActions.new(@new_resource, run_context, @action) end @@ -228,3 +235,9 @@ class Chef extend DeprecatedLWRPClass end end + +# Requiring things at the bottom breaks cycles +require 'chef/chef_class' +require 'chef/mixin/why_run' +require 'chef/resource_collection' +require 'chef/runner' |