class Cumulus::SQS::DeadLetterDiff

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

Public Instance Methods

diff_string() click to toggle source
# File lib/sqs/models/DeadLetterDiff.rb, line 18
def diff_string
  asset = case @type
  when TARGET
    "Target"
  when RECEIVE
    "Max Receive Count"
  end

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

end