summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Gebert <steffen.gebert@typo3.org>2013-11-25 19:14:05 +0100
committerBryan McLellan <btm@opscode.com>2013-12-20 10:06:44 -0800
commit08679cc1fd512e808b051444846ff65e17aa6da6 (patch)
treef6d9fcf3a476182f689238e59513587cf3c114dd
parent5e5ba9029162e8f4a96714a88330bbcdfe3ea035 (diff)
downloadchef-08679cc1fd512e808b051444846ff65e17aa6da6.tar.gz
[CHEF-4784] Output formatter "doc" lacks information about handlers
-rw-r--r--lib/chef/formatters/doc.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index 689c6ab99a..a0b49f4ab5 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -230,6 +230,21 @@ class Chef
@output.color("\n * Whyrun not supported for #{resource}, bypassing load.", :yellow)
end
+ # Called before handlers run
+ def handlers_start(handler_count)
+ puts "\nRunning handlers:"
+ end
+
+ # Called after an individual handler has run
+ def handler_executed(handler)
+ puts " - #{handler.class.name}"
+ end
+
+ # Called after all handlers have executed
+ def handlers_completed
+ puts "Running handlers complete\n"
+ end
+
# Called when a provider makes an assumption after a failed assertion
# in whyrun mode, in order to allow execution to continue
def whyrun_assumption(action, resource, message)