class Cumulus::ELB::AccessLogDiff

Public: Represents a single difference between local configuration and an AWS Load Balancer Access Log.

Public Instance Methods

asset_type() click to toggle source
# File lib/elb/models/AccessLogDiff.rb, line 21
def asset_type
  "Access Log Config"
end
change_string() click to toggle source
# File lib/elb/models/AccessLogDiff.rb, line 25
def change_string
  case @type
  when ENABLED
    "enabled:"
  when BUCKET
    "S3 bucket:"
  when EMIT
    "emit interval:"
  when PREFIX
    "bucket prefix:"
  end
end
diff_string() click to toggle source
# File lib/elb/models/AccessLogDiff.rb, line 38
def diff_string
  [
    change_string,
    Colors.aws_changes("\tAWS - #{aws}"),
    Colors.local_changes("\tLocal - #{local}"),
  ].join("\n")
end