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

custom_action.rb « git_access_result « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 224c6b9eb52e2c3af316e97448f6c419bd124479 (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
25
# frozen_string_literal: true

module Gitlab
  module GitAccessResult
    class CustomAction
      attr_reader :payload, :console_messages

      # Example of payload:
      #
      # {
      #   'action' => 'geo_proxy_to_primary',
      #   'data' => {
      #     'api_endpoints' => %w{geo/proxy_git_ssh/info_refs_receive_pack geo/proxy_git_ssh/receive_pack},
      #     'gl_username' => user.username,
      #     'primary_repo' => geo_primary_http_url_to_repo(container)
      #   }
      # }
      #
      def initialize(payload, console_messages)
        @payload = payload
        @console_messages = console_messages
      end
    end
  end
end