diff options
author | Ranjib Dey <dey.ranjib@gmail.com> | 2013-07-24 00:10:39 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-11-06 09:13:47 -0800 |
commit | de0b38de4c74a354477d841a66c604f92e647450 (patch) | |
tree | f7675d48060d7a67df0bdf6b5b722c1689394332 /lib/chef/formatters/minimal.rb | |
parent | b0bd056d854bc5f2de32c637c2a1821fbd2df777 (diff) | |
download | chef-de0b38de4c74a354477d841a66c604f92e647450.tar.gz |
pass elapsed time along with node/exception in event hanlders
Diffstat (limited to 'lib/chef/formatters/minimal.rb')
-rw-r--r-- | lib/chef/formatters/minimal.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/formatters/minimal.rb b/lib/chef/formatters/minimal.rb index a189cc67eb..bf52a9bebe 100644 --- a/lib/chef/formatters/minimal.rb +++ b/lib/chef/formatters/minimal.rb @@ -33,13 +33,13 @@ class Chef end # Called at the end of the Chef run. - def run_completed(node) - puts "chef client finished, #{@updated_resources.size} resources updated" + def run_completed(node, elapsed_time) + puts "chef client finished, #{@updated_resources.size} resources updated in #{elapsed_time} seconds" end # called at the end of a failed run - def run_failed(exception) - puts "chef client failed. #{@updated_resources.size} resources updated" + def run_failed(exception, elapsed_time) + puts "chef client failed. #{@updated_resources.size} resources updated in #{elapsed_time} seconds" end # Called right after ohai runs. |