Class: Redmine::Scm::Base
- Inherits:
-
Object
- Object
- Redmine::Scm::Base
- Defined in:
- lib/redmine/scm/base.rb
Overview
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
11 12 13 14 |
# File 'lib/redmine/scm/base.rb', line 11 def add(scm_name) @scms ||= [] @scms << scm_name end |
.all ⇒ Object
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 |