Module: Cumulus::Common::DiffChange
- Included in:
- AutoScaling::AlarmChange, AutoScaling::AutoScalingChange, AutoScaling::PolicyChange, AutoScaling::ScheduledActionChange, Cumulus::CloudFront::CacheBehaviorChange, Cumulus::CloudFront::CustomHeaderChange, Cumulus::CloudFront::CustomOriginChange, Cumulus::CloudFront::DistributionChange, Cumulus::CloudFront::OriginChange, Cumulus::CloudFront::OriginSslProtocolsChange, Diff, EC2::EbsGroupChange, EC2::InstanceChange, ELB::AccessLogChange, ELB::HealthCheckChange, ELB::ListenerChange, ELB::LoadBalancerChange, IAM::IamChange, Kinesis::StreamChange, Route53::RecordChange, Route53::ZoneChange, S3::BucketChange, S3::DefaultEncryptionChange, S3::GrantChange, S3::LifecycleChange, S3::NotificationChange, S3::ReplicationChange, SQS::DeadLetterChange, SQS::QueueChange, SecurityGroups::RuleChange, SecurityGroups::SecurityGroupChange, VPC::AclEntryChange, VPC::DhcpChange, VPC::EndpointChange, VPC::NetworkAclChange, VPC::RouteChange, VPC::RouteTableChange, VPC::SubnetChange, VPC::VpcChange
- Defined in:
- lib/common/models/Diff.rb
Overview
Public: The types of changes common to all Diffs
Constant Summary collapse
- ADD =
next_change_id
- UNMANAGED =
next_change_id
- MODIFIED =
next_change_id
- @@current =
0
Class Method Summary collapse
-
.next_change_id ⇒ Object
Public: Produce the next id for a change type.
Class Method Details
.next_change_id ⇒ Object
Public: Produce the next id for a change type. Use this to avoid id collisions.
Returns the new id
13 14 15 16 |
# File 'lib/common/models/Diff.rb', line 13 def self.next_change_id @@current += 1 @@current end |