debian-mirror-gitlab/app/models/clusters/agents/implicit_authorization.rb

24 lines
345 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# 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
2021-11-18 22:05:49 +05:30
def config_project
agent.project
end
2021-11-11 11:23:49 +05:30
def config
nil
end
end
end
end