class TutumContainers
Public Instance Methods
get(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 14 def get(uuid) http_get(get_url(uuid)) end
get_url(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 10 def get_url(uuid) "/container/#{uuid}/" end
list(params={})
click to toggle source
# File lib/tutum_containers.rb, line 6 def list(params={}) http_get(list_url, params) end
list_url()
click to toggle source
# File lib/tutum_containers.rb, line 2 def list_url "/container/" end
logs(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 38 def logs(uuid) http_get(logs_url(uuid)) end
logs_url(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 34 def logs_url(uuid) "/container/#{uuid}/logs/" end
start(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 22 def start(uuid) http_post(start_url(uuid)) end
start_url(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 18 def start_url(uuid) "/container/#{uuid}/start/" end
stop(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 30 def stop(uuid) http_post(stop_url(uuid)) end
stop_url(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 26 def stop_url(uuid) "/container/#{uuid}/stop/" end
terminate(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 46 def terminate(uuid) http_terminate(terminate_url(uuid)) end
terminate_url(uuid)
click to toggle source
# File lib/tutum_containers.rb, line 42 def terminate_url(uuid) "/container/#{uuid}/" end