Class: Redmine::Scm::Base
- Inherits:
-
Object
- Object
- Redmine::Scm::Base
- Defined in:
- lib/redmine/scm/base.rb
Class Method Summary
-
+ (Object) add(scm_name)
Add a new SCM adapter and repository.
- + (Object) all
-
+ (Object) delete(scm_name)
Remove a SCM adapter from Redmine’s list of supported scms.
Class Method Details
+ (Object) add(scm_name)
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 |
+ (Object) all
6 7 8 |
# File 'lib/redmine/scm/base.rb', line 6 def all @scms end |
+ (Object) delete(scm_name)
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 |