Sha256: ed5fc2ea528300fd9ed1ef2797236b34781b8009cc3e6fdee0615a0acea2aa16

Contents?: true

Size: 334 Bytes

Versions: 16

Compression:

Stored size: 334 Bytes

Contents

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

  def start_maintenance(cloud, attributes)
    post("/apps/#{cloud}/maintenances", :maintenance => attributes)
  end

  def finish_maintenance(cloud)
    put("/apps/#{cloud}/maintenances/last", :maintenance => {:finished => true})
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
shelly-0.5.7 lib/shelly/client/maintenance.rb
shelly-0.5.6 lib/shelly/client/maintenance.rb
shelly-0.5.5 lib/shelly/client/maintenance.rb
shelly-0.5.4 lib/shelly/client/maintenance.rb
shelly-0.5.3 lib/shelly/client/maintenance.rb
shelly-0.5.2 lib/shelly/client/maintenance.rb
shelly-0.5.1 lib/shelly/client/maintenance.rb
shelly-0.5.0 lib/shelly/client/maintenance.rb
shelly-0.4.42 lib/shelly/client/maintenance.rb
shelly-0.4.41 lib/shelly/client/maintenance.rb
shelly-0.4.40 lib/shelly/client/maintenance.rb
shelly-0.4.39 lib/shelly/client/maintenance.rb
shelly-0.4.38 lib/shelly/client/maintenance.rb
shelly-0.4.37 lib/shelly/client/maintenance.rb
shelly-0.4.36 lib/shelly/client/maintenance.rb
shelly-0.4.35 lib/shelly/client/maintenance.rb