Method: UpGuard::BaseObject#http_put
- Defined in:
- lib/upguard/BaseObject.rb
#http_put(path, body) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/upguard/BaseObject.rb', line 73 def http_put(path, body) response = HTTParty.put("#{self.appliance_url}#{path}", :headers => make_headers, :verify => (self.insecure == false), :body => body.to_json ) if response.code.to_s != "204" raise response.body end end |