Class: Cumulus::CloudFront::CustomHeaderDiff
- Inherits:
-
Cumulus::Common::Diff
- Object
- Cumulus::Common::Diff
- Cumulus::CloudFront::CustomHeaderDiff
- Includes:
- CustomHeaderChange
- Defined in:
- lib/cloudfront/models/CustomHeaderDiff.rb
Constant Summary
Constants included from CustomHeaderChange
Cumulus::CloudFront::CustomHeaderChange::NAME, Cumulus::CloudFront::CustomHeaderChange::VALUE
Constants included from Cumulus::Common::DiffChange
Cumulus::Common::DiffChange::ADD, Cumulus::Common::DiffChange::MODIFIED, Cumulus::Common::DiffChange::UNMANAGED
Instance Attribute Summary
Attributes inherited from Cumulus::Common::Diff
#aws, #changes, #info_only, #local, #type
Instance Method Summary collapse
Methods included from Cumulus::Common::DiffChange
Methods inherited from Cumulus::Common::Diff
#add_string, added, #initialize, modified, #to_s, unmanaged, #unmanaged_string
Constructor Details
This class inherits a constructor from Cumulus::Common::Diff
Instance Method Details
#asset_type ⇒ Object
33 34 35 |
# File 'lib/cloudfront/models/CustomHeaderDiff.rb', line 33 def asset_type "Custom Origin Header" end |
#aws_name ⇒ Object
37 38 39 |
# File 'lib/cloudfront/models/CustomHeaderDiff.rb', line 37 def aws_name @aws.header_name end |
#diff_string ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/cloudfront/models/CustomHeaderDiff.rb', line 16 def diff_string case @type when NAME [ "name:", Colors.aws_changes("\tAWS - #{@aws.header_name}"), Colors.local_changes("\tLocal - #{@local.name}") ].join("\n") when VALUE [ "value:", Colors.aws_changes("\tAWS - #{@aws.header_value}"), Colors.local_changes("\tLocal - #{@local.value}") ].join("\n") end end |
#local_name ⇒ Object
41 42 43 |
# File 'lib/cloudfront/models/CustomHeaderDiff.rb', line 41 def local_name @local.name end |