summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/build/credentials/registry/dependency_proxy.rb
blob: 76eec2172b101e13db5578c05d5e5186d1ed1047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Gitlab
  module Ci
    module Build
      module Credentials
        module Registry
          class DependencyProxy < GitlabRegistry
            def url
              Gitlab.host_with_port
            end

            def valid?
              Gitlab.config.dependency_proxy.enabled
            end
          end
        end
      end
    end
  end
end