module AwsExtensions::EC2::SecurityGroup

Public Instance Methods

vpc_group_name() click to toggle source

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

# 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