class Cumulus::VPC::AclEntryDiff

Public: Represents a single difference between local configuration and AWS configuration

Public Instance Methods

asset_type() click to toggle source
# File lib/vpc/models/AclEntryDiff.rb, line 22
def asset_type
  "Network Acl Entry"
end
aws_name() click to toggle source
# File lib/vpc/models/AclEntryDiff.rb, line 26
def aws_name
  @aws.rule_number
end
diff_string() click to toggle source
# File lib/vpc/models/AclEntryDiff.rb, line 30
def diff_string
  resource = case @type
  when PROTOCOL
    "Protocol"
  when ACTION
    "Action"
  when CIDR
    "CIDR Block"
  when PORTS
    "Ports"
  when ICMP_TYPE
    "ICMP Type"
  when ICMP_CODE
    "ICMP Code"
  end

  [
    "#{resource}:",
    Colors.aws_changes("\tAWS - #{aws}"),
    Colors.local_changes("\tLocal - #{local}"),
  ].join("\n")
end