class Cumulus::EC2::EbsGroupDiff
Public: Represents a single difference between local configuration and AWS configuration
Public Instance Methods
asset_type()
click to toggle source
# File lib/ec2/models/EbsGroupDiff.rb, line 22 def asset_type "EBS Volume Group" end
aws_name()
click to toggle source
# File lib/ec2/models/EbsGroupDiff.rb, line 26 def aws_name @aws.name end
diff_string()
click to toggle source
# File lib/ec2/models/EbsGroupDiff.rb, line 30 def diff_string case @type when AZ [ "Availability Zone:", Colors.aws_changes("\tAWS - #{aws}"), Colors.local_changes("\tLocal - #{local}"), ].join("\n") when VG_ADDED Colors.added("Volume Group Added: #{local.count} x #{local.description}") when VG_REMOVED Colors.unmanaged("Volume Group Unmanaged: #{aws.count} x #{aws.description}") when VG_COUNT Colors.local_changes("Count changed from #{aws.count} to #{local.count}: #{local.description}") end end