Class: Medidata::ChefStatusHandler
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Medidata::ChefStatusHandler
- Defined in:
- lib/chef_status_handler.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/chef_status_handler.rb', line 7 def url @url end |
Instance Method Details
#parsed_url ⇒ Object
14 15 16 |
# File 'lib/chef_status_handler.rb', line 14 def parsed_url URI.parse url end |
#report ⇒ Object
9 10 11 12 |
# File 'lib/chef_status_handler.rb', line 9 def report params = {"chef_report[success]" => success?, "chef_report[node]" => node.name} Net::HTTP.post_form(parsed_url, params) end |