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


25
26
27
28
# File 'lib/redmine/scm/base.rb', line 25

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

.allObject


20
21
22
# File 'lib/redmine/scm/base.rb', line 20

def all
  @scms
end

.delete(scm_name) ⇒ Object

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


31
32
33
# File 'lib/redmine/scm/base.rb', line 31

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