gitlab-org--gitlab-foss/lib/gitlab/git_access_result/custom_action.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
654 B
Ruby
Raw Normal View History

# 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