Class: Medidata::ChefStatusHandler

Inherits:
Chef::Handler
  • Object
show all
Defined in:
lib/chef_status_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#urlObject

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_urlObject



14
15
16
# File 'lib/chef_status_handler.rb', line 14

def parsed_url
  URI.parse url
end

#reportObject



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