class Cumulus::ELB::HealthCheckDiff

Public: Represents a single difference between local configuration and an AWS Load Balancer Health Check

Public Instance Methods

asset_type() click to toggle source
# File lib/elb/models/HealthCheckDiff.rb, line 22
def asset_type
  "Health Check Config"
end
change_string() click to toggle source
# 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() click to toggle source
# 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