Class: Swa::EC2::Image

Inherits:
Resource show all
Includes:
TaggedResource
Defined in:
lib/swa/ec2/image.rb

Instance Attribute Summary

Attributes inherited from Resource

#aws_resource

Instance Method Summary collapse

Methods included from TaggedResource

#tags

Methods inherited from Resource

#data, #initialize, list

Constructor Details

This class inherits a constructor from Swa::Resource

Instance Method Details

#nameObject



19
20
21
# File 'lib/swa/ec2/image.rb', line 19

def name
  ami.name
end

#summaryObject



11
12
13
14
15
16
17
# File 'lib/swa/ec2/image.rb', line 11

def summary
  [
    pad(ami.image_id, 12),
    ami.creation_date.sub(".000Z", "Z"),
    quoted(name)
  ].join("  ")
end