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