Module: Cumulus::Common::DiffChange

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

Class Method Details

.next_change_idObject

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