Sha256: 4618db14ba99c97b82e8033fc00b3ce2c049e7a5e29afbf3fd431587c744d236
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 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 :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
6 entries across 6 versions & 1 rubygems