lib/buildbox/api.rb in buildbox-0.3.9 vs lib/buildbox/api.rb in buildbox-0.3.9.1
- old
+ new
@@ -33,11 +33,11 @@
@api_key = api_key
get("user")
end
- def agent(access_token, hostname)
- put("agents/#{access_token}", :hostname => hostname)
+ def agent(access_token, options)
+ put("agents/#{access_token}", options)
rescue Faraday::Error::ClientError => e
if e.response[:status] == 404
raise AgentNotFoundError.new(e, e.response)
else
raise ServerError.new(e, e.response)