Class: RightScaleAPI::Deployment
Instance Attribute Summary
#account
Instance Method Summary
collapse
#collection_uri
Methods inherited from Base
api_name, attributes, #collection_uri, create, #delete, #destroy, get, #get, #head, #initialize, #path, #post, #put, #reload!, #send_request, #update, #uri
Instance Method Details
#duplicate ⇒ Object
26
27
28
|
# File 'lib/right-scale-api/deployment.rb', line 26
def duplicate
post '/duplicate'
end
|
#servers=(list) ⇒ Object
14
15
16
|
# File 'lib/right-scale-api/deployment.rb', line 14
def servers= list
@servers = list.map {|params| Server.new params.merge(:account => self.account, :deployment => self) }
end
|
#start_all ⇒ Object
18
19
20
|
# File 'lib/right-scale-api/deployment.rb', line 18
def start_all
post '/start_all'
end
|
#stop_all ⇒ Object
22
23
24
|
# File 'lib/right-scale-api/deployment.rb', line 22
def stop_all
post '/stop_all'
end
|