diff options
author | John Keiser <john@johnkeiser.com> | 2015-12-03 13:26:30 -0800 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-12-09 10:26:08 -0800 |
commit | 9b0a4fd24e9939f95082f0fb7739f298a5791432 (patch) | |
tree | 66c084283e35eb35247d94eaadeae3b5544014a1 /lib/chef/runner.rb | |
parent | f49b514610f954945f1eb425a751e70ce784e3d1 (diff) | |
download | chef-9b0a4fd24e9939f95082f0fb7739f298a5791432.tar.gz |
immediately_before -> before
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r-- | lib/chef/runner.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index 50554dcdbc..e1b4e98f89 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -47,22 +47,22 @@ class Chef # execute it. def run_action(resource, action, notification_type=nil, notifying_resource=nil) - # If there are any immediately_before notifications, why-run the resource + # If there are any before notifications, why-run the resource # and notify anyone who needs notifying - if !run_context.immediately_before_notifications(resource).empty? + if !run_context.before_notifications(resource).empty? whyrun_before = Chef::Config[:why_run] begin Chef::Config[:why_run] = true - Chef::Log.info("#{resource} running why-run #{action} action to support immediately_before action") + Chef::Log.info("#{resource} running why-run #{action} action to support before action") resource.run_action(action, notification_type, notifying_resource) ensure Chef::Config[:why_run] = whyrun_before end if resource.updated_by_last_action? - run_context.immediately_before_notifications(resource).each do |notification| - Chef::Log.info("#{resource} sending #{notification.action} action to #{notification.resource} (immediately_before)") - run_action(notification.resource, notification.action, :immediately_before, resource) + run_context.before_notifications(resource).each do |notification| + Chef::Log.info("#{resource} sending #{notification.action} action to #{notification.resource} (before)") + run_action(notification.resource, notification.action, :before, resource) end end |