Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
23
lib/redmine/scm/base.rb
Normal file
23
lib/redmine/scm/base.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue