Class: Rackspace::AutoScale
- Inherits:
-
Object
- Object
- Rackspace::AutoScale
- Defined in:
- lib/capistrano/rackspace.rb
Instance Method Summary collapse
- #addresses ⇒ Object
-
#initialize ⇒ AutoScale
constructor
A new instance of AutoScale.
- #private_addresses ⇒ Object
Constructor Details
#initialize ⇒ AutoScale
Returns a new instance of AutoScale.
46 47 48 49 50 |
# File 'lib/capistrano/rackspace.rb', line 46 def initialize @config = Configuration.instantiate @autoscale_service = Fog::Rackspace::AutoScale.new(@config.common) @compute_service = Fog::Compute.new(@config.compute) end |
Instance Method Details
#addresses ⇒ Object
52 53 54 |
# File 'lib/capistrano/rackspace.rb', line 52 def addresses @server_addresses_public ||= addresses_by_type('public') end |
#private_addresses ⇒ Object
56 57 58 |
# File 'lib/capistrano/rackspace.rb', line 56 def private_addresses @server_addresses_private ||= addresses_by_type('private') end |