lib/gaptool-api.rb in gaptool-api-0.6.6 vs lib/gaptool-api.rb in gaptool-api-0.7.0
- old
+ new
@@ -85,11 +85,10 @@
def setparameters(instance, params={})
patch("/instance/#{instance}", {body: params.to_json})
end
def getappnodes(app, environment, params={})
- role = get("/apps", {query: params})["app:#{app}"]['role']
- get("/hosts/#{role}/#{environment}", {query: params})
+ get("/app/#{app}/#{environment}/hosts", {query: params})
end
def ssh(role, environment, id)
get("/ssh/#{role}/#{environment}/#{id}")
end