Module: AwsExtensions::EC2::SecurityGroup

Defined in:
lib/aws_extensions/ec2/SecurityGroup.rb

Instance Method Summary collapse

Instance Method Details

#vpc_group_nameObject

Public: Returns the name of the security group prefixed by the vpc name or id



8
9
10
11
12
# File 'lib/aws_extensions/ec2/SecurityGroup.rb', line 8

def vpc_group_name
  vpc = Cumulus::EC2::id_vpcs[self.vpc_id]
  vpc_name = if vpc then "#{vpc.name}/" else "" end
  "#{vpc_name}#{self.group_name}"
end