Class: Isbumiawake::Chef::Handler
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Isbumiawake::Chef::Handler
- Defined in:
- lib/isbumiawake/chef/handler.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Handler
constructor
A new instance of Handler.
- #message ⇒ Object
- #report ⇒ Object
Constructor Details
#initialize(args) ⇒ Handler
Returns a new instance of Handler.
7 8 9 |
# File 'lib/isbumiawake/chef/handler.rb', line 7 def initialize(args) @url = args["url"] end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/isbumiawake/chef/handler.rb', line 15 def "Chef run on node #{node.fqdn} #{success? ? "successfully" : "NOT successfully"} completed in #{elapsed_time} (#{start_time}-#{end_time}) and updated: #{updated_resources.join(",")}" end |
#report ⇒ Object
11 12 13 |
# File 'lib/isbumiawake/chef/handler.rb', line 11 def report RestClient.post @url, :message => self. end |