lib/gaptool-api.rb in gaptool-api-0.7.2 vs lib/gaptool-api.rb in gaptool-api-0.8.0

- old
+ new

@@ -55,11 +55,11 @@ get("/hosts/#{role}/#{environment}", {query: params}) end def addnode(zone, itype, role, environment, mirror=nil, security_group=nil, ami=nil, chef_repo=nil, chef_branch=nil, chef_runlist=nil, - no_terminate=nil, tags=nil) + no_terminate=nil) body = { 'zone' => zone || @default_aws_az, 'itype' => itype, 'role' => role, 'environment' => environment, @@ -74,13 +74,10 @@ body['chef_runlist'] = [*chef_runlist] end if no_terminate body['terminate'] = false end - unless tags.nil? || tags.empty? - body['tags'] = [*tags] - end post('/init', {body: body.to_json}) end def terminatenode(id, zone) post('/terminate', {body: {'id' => id, 'zone' => zone || @default_aws_region}.to_json}) @@ -90,17 +87,9 @@ patch("/instance/#{instance}", {body: params.to_json}) end def getappnodes(app, environment, params={}) get("/app/#{app}/#{environment}/hosts", {query: params}) - end - - def apps(params={}) - get("/apps", {query: params}) - end - - def ssh(role, environment, id) - get("/ssh/#{role}/#{environment}/#{id}") end def getrolenodes(role, params={}) get("/hosts/#{role}", {query: params}) end