Class: MultiRepo::RevisionSelection

Inherits:
Object
  • Object
show all
Defined in:
lib/multirepo/logic/revision-selection.rb

Constant Summary collapse

AS_LOCK =
0
LATEST =
1
EXACT =
2

Class Method Summary collapse

Class Method Details

.name_for_mode(mode) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/multirepo/logic/revision-selection.rb', line 7

def self.name_for_mode(mode)
  case mode
  when AS_LOCK then "as-lock"
  when LATEST then "latest"
  when EXACT then "exact"
  end
end