Class: RightScaleAPI::Deployment

Inherits:
Account::SubResource show all
Defined in:
lib/right-scale-api/deployment.rb

Instance Attribute Summary

Attributes inherited from Account::SubResource

#account

Attributes inherited from Base

#href, #id

Instance Method Summary collapse

Methods inherited from Account::SubResource

#collection_uri

Methods inherited from Base

api_name, attributes, create, #delete, #destroy, get, #get, #head, #initialize, #post, #put, #reload!, #send_request, #update, #uri

Constructor Details

This class inherits a constructor from RightScaleAPI::Base

Instance Method Details

#duplicateObject



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., :deployment => self) }
end

#start_allObject



18
19
20
# File 'lib/right-scale-api/deployment.rb', line 18

def start_all
  post '/start_all'
end

#stop_allObject



22
23
24
# File 'lib/right-scale-api/deployment.rb', line 22

def stop_all
  post '/stop_all'
end