Class: Redmine::Scm::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/scm/base.rb

Class Method Summary collapse

Class Method Details

.add(scm_name) ⇒ Object

Add a new SCM adapter and repository



12
13
14
15
# File 'lib/redmine/scm/base.rb', line 12

def add(scm_name)
  @scms ||= []
  @scms << scm_name
end

.allObject



7
8
9
# File 'lib/redmine/scm/base.rb', line 7

def all
  @scms || []
end

.delete(scm_name) ⇒ Object

Remove a SCM adapter from Redmine’s list of supported scms



18
19
20
# File 'lib/redmine/scm/base.rb', line 18

def delete(scm_name)
  @scms.delete(scm_name)
end