Class: Rackspace::AutoScale

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/rackspace.rb

Instance Method Summary collapse

Constructor Details

#initializeAutoScale

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

#addressesObject



52
53
54
# File 'lib/capistrano/rackspace.rb', line 52

def addresses
  @server_addresses_public ||= addresses_by_type('public')
end

#private_addressesObject



56
57
58
# File 'lib/capistrano/rackspace.rb', line 56

def private_addresses
  @server_addresses_private ||= addresses_by_type('private')
end