Class: Chef::Handler::Growl
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Chef::Handler::Growl
- Defined in:
- lib/chef/handler/growl.rb
Instance Method Summary collapse
Instance Method Details
#report ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/chef/handler/growl.rb', line 25 def report title = Chef::Config[:solo] ? "Chef Solo" : "Chef Client" icon = "http://www.opscode.com/images/OC_Chef_Logo.png" text = if run_status.success? "Chef complete on #{node.name} in #{run_status.elapsed_time}" else "Chef failed on #{node.name} with #{run_status.exception}" end GNTP.notify( :app_name => "Chef", :title => title, :text => text, :icon => icon ) end |