Sha256: 7a61d117efcab3bfb9629c68b0f2d9c8b9860bb972d13a631aa43d80b1013bbc

Contents?: true

Size: 560 Bytes

Versions: 65

Compression:

Stored size: 560 Bytes

Contents

class Shelly::Client
  def app_configs(cloud)
    get("/apps/#{cloud}/configs")
  end

  def app_config(cloud, path)
    get("/apps/#{cloud}/configs/#{CGI.escape(path)}")
  end

  def app_create_config(cloud, path, content)
    post("/apps/#{cloud}/configs", :config => {:path => path, :content => content})
  end

  def app_update_config(cloud, path, content)
    put("/apps/#{cloud}/configs/#{CGI.escape(path)}", :config => {:content => content})
  end

  def app_delete_config(cloud, path)
    delete("/apps/#{cloud}/configs/#{CGI.escape(path)}")
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
shelly-0.4.14 lib/shelly/client/configs.rb
shelly-0.4.13 lib/shelly/client/configs.rb
shelly-0.4.12 lib/shelly/client/configs.rb
shelly-0.4.11 lib/shelly/client/configs.rb
shelly-0.4.10 lib/shelly/client/configs.rb
shelly-0.4.9 lib/shelly/client/configs.rb
shelly-0.4.8 lib/shelly/client/configs.rb
shelly-0.4.7 lib/shelly/client/configs.rb
shelly-0.4.6 lib/shelly/client/configs.rb
shelly-0.4.5 lib/shelly/client/configs.rb
shelly-0.4.4 lib/shelly/client/configs.rb
shelly-0.4.2 lib/shelly/client/configs.rb
shelly-0.4.1 lib/shelly/client/configs.rb
shelly-0.4.0 lib/shelly/client/configs.rb
shelly-0.4.0.pre lib/shelly/client/configs.rb
shelly-0.3.8 lib/shelly/client/configs.rb
shelly-0.3.7 lib/shelly/client/configs.rb
shelly-0.3.6 lib/shelly/client/configs.rb
shelly-0.3.5 lib/shelly/client/configs.rb
shelly-0.3.5.pre lib/shelly/client/configs.rb