Class: Swa::EC2::Instance
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods included from TaggedResource
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#console_output ⇒ Object
28 29 30 |
# File 'lib/swa/ec2/instance.rb', line 28 def console_output i.console_output.output end |
#name ⇒ Object
24 25 26 |
# File 'lib/swa/ec2/instance.rb', line 24 def name ["Name"] end |
#summary ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/swa/ec2/instance.rb', line 12 def summary [ pad(i.instance_id, 10), pad(i.image_id, 12), pad(i.instance_type, 10), pad(i.state.name, 10), pad(i.private_ip_address, 14), pad(i.public_ip_address, 14), quoted(name) ].join(" ") end |