Class: Cumulus::CloudFront::OriginSslProtocolsDiff
- Inherits:
-
Cumulus::Common::Diff
- Object
- Cumulus::Common::Diff
- Cumulus::CloudFront::OriginSslProtocolsDiff
- Includes:
- OriginSslProtocolsChange
- Defined in:
- lib/cloudfront/models/OriginSslProtocolsDiff.rb
Overview
Public: Represents a single difference between local configuration and AWS configuration of origin ssl protocols
Constant Summary
Constants included from OriginSslProtocolsChange
Cumulus::CloudFront::OriginSslProtocolsChange::ITEMS
Constants included from Cumulus::Common::DiffChange
Cumulus::Common::DiffChange::ADD, Cumulus::Common::DiffChange::MODIFIED, Cumulus::Common::DiffChange::UNMANAGED
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
Attributes inherited from Cumulus::Common::Diff
#aws, #changes, #info_only, #local, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Cumulus::Common::DiffChange
Methods inherited from Cumulus::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 Attribute Details
#items ⇒ Object
Returns the value of attribute items.
19 20 21 |
# File 'lib/cloudfront/models/OriginSslProtocolsDiff.rb', line 19 def items @items end |
Class Method Details
.items(added, removed, local) ⇒ Object
21 22 23 24 25 |
# File 'lib/cloudfront/models/OriginSslProtocolsDiff.rb', line 21 def self.items(added, removed, local) diff = OriginSslProtocolsDiff.new(ITEMS, nil, local) diff.items = Common::ListChange.new(added, removed) diff end |
Instance Method Details
#diff_string ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/cloudfront/models/OriginSslProtocolsDiff.rb', line 27 def diff_string case @type when ITEMS [ "items:", @items.removed.map { |removed| Colors.removed("\t#{removed}") }, @items.added.map { |added| Colors.added("\t#{added}") }, ].flatten.join("\n") end end |