Class: AwsEc2List::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_ec2_list/instance.rb

Instance Method Summary collapse

Instance Method Details

#app_versionObject



26
27
28
# File 'lib/aws_ec2_list/instance.rb', line 26

def app_version
  tags.find{ |t| t.key == "app_version" }.value rescue nil
end

#nameObject



14
15
16
# File 'lib/aws_ec2_list/instance.rb', line 14

def name
  tags.find{ |t| t.key == "Name" }.value rescue nil
end

#projectObject



22
23
24
# File 'lib/aws_ec2_list/instance.rb', line 22

def project
  tags.find{ |t| t.key == "project" }.value rescue nil
end

#stack_nameObject



18
19
20
# File 'lib/aws_ec2_list/instance.rb', line 18

def stack_name
  tags.find{ |t| t.key == "aws:cloudformation:stack-name" }.value rescue nil
end