summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/scm/base.rb')
-rw-r--r--lib/redmine/scm/base.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/redmine/scm/base.rb b/lib/redmine/scm/base.rb
new file mode 100644
index 000000000..43e8a1877
--- /dev/null
+++ b/lib/redmine/scm/base.rb
@@ -0,0 +1,23 @@
+module Redmine
+ module Scm
+ class Base
+ class << self
+
+ def all
+ @scms
+ end
+
+ # Add a new SCM adapter and repository
+ def add(scm_name)
+ @scms ||= []
+ @scms << scm_name
+ end
+
+ # Remove a SCM adapter from Redmine's list of supported scms
+ def delete(scm_name)
+ @scms.delete(scm_name)
+ end
+ end
+ end
+ end
+end