summaryrefslogtreecommitdiff
path: root/lib/chef/run_context/cookbook_compiler.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-12-18 12:24:49 -0800
committerdanielsdeleo <dan@opscode.com>2012-12-19 15:39:53 -0800
commit3927c163d868af1ee6d0865a7048b86b179c898d (patch)
tree27b9863bfdd91044b8cfc9067e30adc7d0f278bb /lib/chef/run_context/cookbook_compiler.rb
parent8acaa8fe1c52e34579bb78e2cf84a9fba44535ce (diff)
downloadchef-3927c163d868af1ee6d0865a7048b86b179c898d.tar.gz
Extract provider LWRP code to LWRPBase
Diffstat (limited to 'lib/chef/run_context/cookbook_compiler.rb')
-rw-r--r--lib/chef/run_context/cookbook_compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/run_context/cookbook_compiler.rb b/lib/chef/run_context/cookbook_compiler.rb
index 67c28e4556..784458fdce 100644
--- a/lib/chef/run_context/cookbook_compiler.rb
+++ b/lib/chef/run_context/cookbook_compiler.rb
@@ -19,7 +19,7 @@
require 'chef/log'
require 'chef/recipe'
require 'chef/resource'
-require 'chef/provider'
+require 'chef/provider/lwrp_base'
require 'chef/resource_definition_list'
class Chef
@@ -196,7 +196,7 @@ class Chef
def load_lwrp_provider(cookbook_name, filename)
Chef::Log.debug("Loading cookbook #{cookbook_name}'s providers from #{filename}")
- Chef::Provider.build_from_file(cookbook_name, filename, self)
+ Chef::Provider::LWRPBase.build_from_file(cookbook_name, filename, self)
@events.lwrp_file_loaded(filename)
rescue Exception => e
@events.lwrp_file_load_failed(filename, e)