diff options
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r-- | lib/chef/runner.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index 6125fe59e1..3467cfe717 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -43,6 +43,10 @@ class Chef @run_context.events end + def provider_resolver + @run_context.provider_resolver + end + # Determine the appropriate provider for the given resource, then # execute it. def run_action(resource, action, notification_type=nil, notifying_resource=nil) @@ -78,6 +82,7 @@ class Chef # Execute each resource. run_context.resource_collection.execute_each_resource do |resource| + provider_resolver.resolve(resource) Array(resource.action).each {|action| run_action(resource, action)} end |