summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/base.rb
blob: b33a9cfd1d3c5da3889f5a9ad74265da0b9ace2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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