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.5.7 lib/shelly/client/configs.rb
shelly-0.5.6 lib/shelly/client/configs.rb
shelly-0.5.5 lib/shelly/client/configs.rb
shelly-0.5.4 lib/shelly/client/configs.rb
shelly-0.5.3 lib/shelly/client/configs.rb
shelly-0.5.2 lib/shelly/client/configs.rb
shelly-0.5.1 lib/shelly/client/configs.rb
shelly-0.5.0 lib/shelly/client/configs.rb
shelly-0.4.42 lib/shelly/client/configs.rb
shelly-0.4.41 lib/shelly/client/configs.rb
shelly-0.4.40 lib/shelly/client/configs.rb
shelly-0.4.39 lib/shelly/client/configs.rb
shelly-0.4.38 lib/shelly/client/configs.rb
shelly-0.4.37 lib/shelly/client/configs.rb
shelly-0.4.36 lib/shelly/client/configs.rb
shelly-0.4.35 lib/shelly/client/configs.rb
shelly-0.4.34 lib/shelly/client/configs.rb
shelly-0.4.33 lib/shelly/client/configs.rb
shelly-0.4.32 lib/shelly/client/configs.rb
shelly-0.4.31 lib/shelly/client/configs.rb