Welcome to mirror list, hosted at ThFree Co, Russian Federation.

implicit_authorization.rb « agents « clusters « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a365ccdc568c1a87356b56403d972c312cea7ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Clusters
  module Agents
    class ImplicitAuthorization
      attr_reader :agent

      delegate :id, to: :agent, prefix: true

      def initialize(agent:)
        @agent = agent
      end

      def config_project
        agent.project
      end

      def config
        {}
      end
    end
  end
end