Class: Scalarium::App

Inherits:
Resource
  • Object
show all
Defined in:
lib/scalarium/app.rb

Instance Method Summary collapse

Methods inherited from Resource

#id, #initialize

Methods included from Api

#get, #post

Constructor Details

This class inherits a constructor from Scalarium::Resource

Instance Method Details

#deploy!Object



4
5
6
# File 'lib/scalarium/app.rb', line 4

def deploy!
  post("applications/#{id}/deploy", :command => 'deploy')
end

#deploy_info(deploy_id) ⇒ Object



8
9
10
# File 'lib/scalarium/app.rb', line 8

def deploy_info(deploy_id)
  get("applications/#{id}/deployments/#{deploy_id}")
end

#deploysObject



12
13
14
# File 'lib/scalarium/app.rb', line 12

def deploys
  get("applications/#{id}/deployments")
end