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

Version Path
shelly-0.4.37 lib/shelly/client/apps.rb
shelly-0.4.36 lib/shelly/client/apps.rb
shelly-0.4.35 lib/shelly/client/apps.rb
shelly-0.4.34 lib/shelly/client/apps.rb
shelly-0.4.33 lib/shelly/client/apps.rb
shelly-0.4.32 lib/shelly/client/apps.rb
shelly-0.4.31 lib/shelly/client/apps.rb
shelly-0.4.30 lib/shelly/client/apps.rb
shelly-0.4.23 lib/shelly/client/apps.rb
shelly-0.4.23.pre lib/shelly/client/apps.rb
shelly-0.4.22 lib/shelly/client/apps.rb
shelly-0.4.21 lib/shelly/client/apps.rb
shelly-0.4.19 lib/shelly/client/apps.rb
shelly-0.4.18 lib/shelly/client/apps.rb
shelly-0.4.17 lib/shelly/client/apps.rb
shelly-0.4.16 lib/shelly/client/apps.rb
shelly-0.4.15 lib/shelly/client/apps.rb
shelly-0.4.14 lib/shelly/client/apps.rb
shelly-0.4.13 lib/shelly/client/apps.rb
shelly-0.4.12 lib/shelly/client/apps.rb