annotate .svn/pristine/5d/5d49f8300d8c88036656ba3ee811b034c32e1e91.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 module Redmine
Chris@1464 2 module Scm
Chris@1464 3 class Base
Chris@1464 4 class << self
Chris@1464 5
Chris@1464 6 def all
Chris@1464 7 @scms || []
Chris@1464 8 end
Chris@1464 9
Chris@1464 10 # Add a new SCM adapter and repository
Chris@1464 11 def add(scm_name)
Chris@1464 12 @scms ||= []
Chris@1464 13 @scms << scm_name
Chris@1464 14 end
Chris@1464 15
Chris@1464 16 # Remove a SCM adapter from Redmine's list of supported scms
Chris@1464 17 def delete(scm_name)
Chris@1464 18 @scms.delete(scm_name)
Chris@1464 19 end
Chris@1464 20 end
Chris@1464 21 end
Chris@1464 22 end
Chris@1464 23 end