Sha256: db04bd6c163a68908174fa7e16e92532937254db8a037a599e31005968ca38e5
Contents?: true
Size: 799 Bytes
Versions: 10
Compression:
Stored size: 799 Bytes
Contents
class Shelly::Client def create_app(attributes) organization = attributes.delete(:organization_name) zone = attributes.delete(:zone_name) post("/apps", :app => attributes, :organization_name => organization, :zone_name => zone) end def delete_app(code_name) delete("/apps/#{code_name}") end def start_cloud(cloud) put("/apps/#{cloud}/start") end def stop_cloud(cloud) put("/apps/#{cloud}/stop") end def apps get("/apps") end def app(code_name) get("/apps/#{code_name}") end def statistics(code_name) get("/apps/#{code_name}/statistics") end def usage(code_name) get("/apps/#{code_name}/usage") end def command(cloud, body, type) post("/apps/#{cloud}/command", {:body => body, :type => type}) end end
Version data entries
10 entries across 10 versions & 1 rubygems