class Cumulus::S3::LifecycleDiff
Public: Represents a single difference between local configuration and AWS lifecycle rule configuration
Public Instance Methods
asset_type()
click to toggle source
# File lib/s3/models/LifecycleDiff.rb, line 22 def asset_type "Lifecycle rule" end
aws_name()
click to toggle source
# File lib/s3/models/LifecycleDiff.rb, line 26 def aws_name @aws.name end
diff_string()
click to toggle source
# File lib/s3/models/LifecycleDiff.rb, line 30 def diff_string case @type when DAYS_UNTIL_DELETE "Days before objects are deleted: AWS - #{Colors.aws_changes(@aws.days_until_delete)}, Local - #{Colors.local_changes(@local.days_until_delete)}" when DAYS_UNTIL_GLACIER "Days before transition to Glacier: AWS - #{Colors.aws_changes(@aws.days_until_glacier)}, Local - #{Colors.local_changes(@local.days_until_glacier)}" when PAST_UNTIL_DELETE "Days before past version objects are deleted: AWS - #{Colors.aws_changes(@aws.past_days_until_delete)}, Local - #{Colors.local_changes(@local.past_days_until_delete)}" when PAST_UNTIL_GLACIER "Days before past version transition to Glacier: AWS - #{Colors.aws_changes(@aws.past_days_until_glacier)}, Local - #{Colors.local_changes(@local.past_days_until_glacier)}" when PREFIX "Prefix - AWS #{Colors.aws_changes(@aws.prefix)}, Local - #{Colors.local_changes(@local.prefix)}" end end