mirror of
https://github.com/redmine/redmine.git
synced 2025-10-28 08:46:22 +01:00
git-svn-id: http://svn.redmine.org/redmine/trunk@17981 e93f8b46-1217-0410-a6f0-8f06a7374b81
26 lines
454 B
Ruby
26 lines
454 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|