Class: Cumulus::SQS::DeadLetterDiff
- Inherits:
-
Common::Diff
- Object
- Common::Diff
- Cumulus::SQS::DeadLetterDiff
- Includes:
- DeadLetterChange
- Defined in:
- lib/sqs/models/DeadLetterDiff.rb
Overview
Public: Represents a single difference between local configuration and AWS configuration
Constant Summary
Constants included from DeadLetterChange
Cumulus::SQS::DeadLetterChange::RECEIVE, Cumulus::SQS::DeadLetterChange::TARGET
Constants included from Common::DiffChange
Common::DiffChange::ADD, Common::DiffChange::MODIFIED, Common::DiffChange::UNMANAGED
Instance Attribute Summary
Attributes inherited from Common::Diff
#aws, #changes, #info_only, #local, #type
Instance Method Summary collapse
Methods included from Common::DiffChange
Methods inherited from Common::Diff
#add_string, added, #initialize, #local_name, modified, #to_s, unmanaged, #unmanaged_string
Constructor Details
This class inherits a constructor from Cumulus::Common::Diff
Instance Method Details
#diff_string ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# 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 |