summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/why_run.rb
diff options
context:
space:
mode:
authortylercloke <tyler@opscode.com>2012-11-05 13:25:00 -0800
committertylercloke <tyler@opscode.com>2012-11-05 16:07:55 -0800
commitd0238d6ff8a32b10a76ae8ec059c8794d30ed6f3 (patch)
treed74d5d390e1ba9732e3ce04b042c58b694ebed34 /lib/chef/mixin/why_run.rb
parent926726fb40f738fa7d0c1c7944c8c3350a1694e8 (diff)
downloadchef-d0238d6ff8a32b10a76ae8ec059c8794d30ed6f3.tar.gz
Finished refactoring converge and updated tests
so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
Diffstat (limited to 'lib/chef/mixin/why_run.rb')
-rw-r--r--lib/chef/mixin/why_run.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/chef/mixin/why_run.rb b/lib/chef/mixin/why_run.rb
index 888d8e2fef..788e2fe2bc 100644
--- a/lib/chef/mixin/why_run.rb
+++ b/lib/chef/mixin/why_run.rb
@@ -58,17 +58,6 @@ class Chef
def empty?
@actions.empty?
end
-
- # Iterate over the actions, and either print the action's message, or
- # run its code block, depending on whether why_run mode is active.
- def converge!
- # @actions.each do |descriptions, block|
- # if !Chef::Config[:why_run]
- # block.call
- # end
- # events.resource_update_applied(@resource, @action, descriptions)
- # end
- end
end
# == ResourceRequirements