Sha256: fd2c9b2a095efbf89b49117fee17e53239c2797d8f80640e2fab649ca2c6ffe5
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
class AwsEc2List::Instance include Virtus.model attribute :instance_id, String attribute :state, String attribute :private_dns_name, String attribute :public_dns_name, String attribute :instance_type, String attribute :image_id, String attribute :launch_time, String attribute :tags, Array def name tags.find{ |t| t.key == "Name" }.value rescue nil end def stack_name tags.find{ |t| t.key == "aws:cloudformation:stack-name" }.value rescue nil end def project tags.find{ |t| t.key == "project" }.value rescue nil end def app_version tags.find{ |t| t.key == "app_version" }.value rescue nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws-ec2-list-0.2.4 | lib/aws_ec2_list/instance.rb |