Class: Skipper::Servers::EC2
- Inherits:
-
Object
- Object
- Skipper::Servers::EC2
- Defined in:
- lib/skipper/servers/ec2.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #hosts ⇒ Object
-
#initialize(options) ⇒ EC2
constructor
A new instance of EC2.
- #instances ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ EC2
Returns a new instance of EC2.
9 10 11 |
# File 'lib/skipper/servers/ec2.rb', line 9 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/skipper/servers/ec2.rb', line 7 def @options end |
Instance Method Details
#hosts ⇒ Object
17 18 19 |
# File 'lib/skipper/servers/ec2.rb', line 17 def hosts @hosts ||= instances.map { |instance| instance.ip_address }.compact end |
#instances ⇒ Object
13 14 15 |
# File 'lib/skipper/servers/ec2.rb', line 13 def instances @instances ||= find_instances end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/skipper/servers/ec2.rb', line 21 def to_s @to_s ||= details_table(instances) end |