class TutumStacks
Public Instance Methods
create(params)
click to toggle source
# File lib/tutum_stacks.rb, line 22 def create(params) http_post(create_url, params) end
create_url()
click to toggle source
# File lib/tutum_stacks.rb, line 18 def create_url "/stack/" end
export(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 30 def export(uuid) http_get(export_url(uuid)) end
export_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 26 def export_url(uuid) "/stack/#{uuid}/export/" end
get(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 14 def get(uuid) http_get(get_url(uuid)) end
get_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 10 def get_url(uuid) "/stack/#{uuid}/" end
list(params={})
click to toggle source
# File lib/tutum_stacks.rb, line 6 def list(params={}) http_get(list_url, params) end
list_url()
click to toggle source
# File lib/tutum_stacks.rb, line 2 def list_url "/stack/" end
redeploy(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 62 def redeploy(uuid) http_post(redeploy_url(uuid)) end
redeploy_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 58 def redeploy_url(uuid) "/stack/#{uuid}/redeploy/" end
start(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 54 def start(uuid) http_post(start_url(uuid)) end
start_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 50 def start_url(uuid) "/stack/#{uuid}/start/" end
stop(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 46 def stop(uuid) http_post(stop_url(uuid)) end
stop_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 42 def stop_url(uuid) "/stack/#{uuid}/stop/" end
terminate(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 70 def terminate(uuid) http_delete(terminate_url(uuid)) end
terminate_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 66 def terminate_url(uuid) "/stack/#{uuid}/" end
update(uuid, params)
click to toggle source
# File lib/tutum_stacks.rb, line 38 def update(uuid, params) http_patch(update_url(uuid), params) end
update_url(uuid)
click to toggle source
# File lib/tutum_stacks.rb, line 34 def update_url(uuid) "/stack/#{uuid}/" end