Sha256: 531863817ecb039449e0af0e5c5db623ca8dafc7dce2b75e418b4730517328e7
Contents?: true
Size: 733 Bytes
Versions: 37
Compression:
Stored size: 733 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 command(cloud, body, type) post("/apps/#{cloud}/command", {:body => body, :type => type}) end end
Version data entries
37 entries across 37 versions & 1 rubygems