Class: Redmine::Scm::Base
- Inherits:
-
Object
- Object
- Redmine::Scm::Base
- Defined in:
- lib/redmine/scm/base.rb
Class Method Summary collapse
-
.add(scm_name) ⇒ Object
Add a new SCM adapter and repository.
- .all ⇒ Object
-
.delete(scm_name) ⇒ Object
Remove a SCM adapter from Redmine’s list of supported scms.
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 |
.all ⇒ Object
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 |