Class: Redmine::Scm::Base

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

Overview

Since:

  • 1.0.0

Class Method Summary collapse

Class Method Details

.add(scm_name) ⇒ Object

Add a new SCM adapter and repository



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

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

.allObject



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

def all
  @scms || []
end

.delete(scm_name) ⇒ Object

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



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

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