class Cumulus::VPC::RouteDiff

Public: Represents a single difference between local configuration AWS configuration

Public Instance Methods

asset_type() click to toggle source
# File lib/vpc/models/RouteDiff.rb, line 21
def asset_type
  "Route"
end
aws_name() click to toggle source
# File lib/vpc/models/RouteDiff.rb, line 25
def aws_name
  @aws.destination_cidr_block
end
diff_string() click to toggle source
# File lib/vpc/models/RouteDiff.rb, line 29
def diff_string
  resource = case @type
  when GATEWAY
    "Gateway"
  when NETWORK
    "Network Interface"
  when VPC_PEERING
    "VPC Peering Connection"
  when NAT_GATEWAY
    "NAT Gateway"
  end

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

end