To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / lib / redmine / scm / base.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (423 Bytes)
| 1 | 0:513646585e45 | Chris | module Redmine |
|---|---|---|---|
| 2 | module Scm |
||
| 3 | class Base |
||
| 4 | class << self |
||
| 5 | |||
| 6 | def all |
||
| 7 | 1295:622f24f53b42 | Chris | @scms || []
|
| 8 | 0:513646585e45 | Chris | end
|
| 9 | |||
| 10 | # Add a new SCM adapter and repository
|
||
| 11 | def add(scm_name) |
||
| 12 | @scms ||= []
|
||
| 13 | @scms << scm_name
|
||
| 14 | end
|
||
| 15 | |||
| 16 | # Remove a SCM adapter from Redmine's list of supported scms
|
||
| 17 | def delete(scm_name) |
||
| 18 | @scms.delete(scm_name)
|
||
| 19 | end
|
||
| 20 | end
|
||
| 21 | end
|
||
| 22 | end
|
||
| 23 | end |