class TutumNodeClusters
Public Instance Methods
create(params)
click to toggle source
# File lib/tutum_node_clusters.rb, line 14 def create(params) http_post(create_url, params) end
create_url()
click to toggle source
# File lib/tutum_node_clusters.rb, line 10 def create_url "/nodecluster/" end
deploy(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 38 def deploy(uuid) http_post(deploy_url(uuid)) end
deploy_url(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 34 def deploy_url(uuid) "/nodecluster/#{uuid}/deploy/" end
get(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 22 def get(uuid) http_get(get_url(uuid)) end
get_url(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 18 def get_url(uuid) "/nodecluster/#{uuid}/" end
list(params={})
click to toggle source
# File lib/tutum_node_clusters.rb, line 6 def list(params={}) http_get(list_url, params) end
list_url()
click to toggle source
# File lib/tutum_node_clusters.rb, line 2 def list_url "/nodecluster/" end
terminate(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 46 def terminate(uuid) http_delete(terminate_url(uuid)) end
terminate_url(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 42 def terminate_url(uuid) "/nodecluster/#{uuid}/" end
update(uuid, params)
click to toggle source
# File lib/tutum_node_clusters.rb, line 30 def update(uuid, params) http_patch(update_url(uuid), params) end
update_url(uuid)
click to toggle source
# File lib/tutum_node_clusters.rb, line 26 def update_url(uuid) "/nodecluster/#{uuid}/" end