Class: Cumulus::ELB::HealthCheckDiff
- Inherits:
-
Common::Diff
- Object
- Common::Diff
- Cumulus::ELB::HealthCheckDiff
- Includes:
- HealthCheckChange
- Defined in:
- lib/elb/models/HealthCheckDiff.rb
Overview
Public: Represents a single difference between local configuration and an AWS Load Balancer Health Check
Constant Summary
Constants included from HealthCheckChange
Cumulus::ELB::HealthCheckChange::HEALTHY, Cumulus::ELB::HealthCheckChange::INTERVAL, Cumulus::ELB::HealthCheckChange::TARGET, Cumulus::ELB::HealthCheckChange::TIMEOUT, Cumulus::ELB::HealthCheckChange::UNHEALTHY
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
#asset_type ⇒ Object
22 23 24 |
# File 'lib/elb/models/HealthCheckDiff.rb', line 22 def asset_type "Health Check Config" end |
#change_string ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/elb/models/HealthCheckDiff.rb', line 26 def change_string case @type when TARGET "target:" when INTERVAL "interval:" when TIMEOUT "timeout:" when HEALTHY "healthy threshold:" when UNHEALTHY "unhealthy threshold:" end end |
#diff_string ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/elb/models/HealthCheckDiff.rb', line 41 def diff_string [ change_string, Colors.aws_changes("\tAWS - #{aws}"), Colors.local_changes("\tLocal - #{local}"), ].join("\n") end |