2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module GitAccessResult
|
|
|
|
class CustomAction
|
2019-12-26 22:10:19 +05:30
|
|
|
attr_reader :payload, :console_messages
|
2018-11-20 20:47:30 +05:30
|
|
|
|
|
|
|
# Example of payload:
|
|
|
|
#
|
|
|
|
# {
|
|
|
|
# 'action' => 'geo_proxy_to_primary',
|
|
|
|
# 'data' => {
|
2020-04-22 19:07:51 +05:30
|
|
|
# 'api_endpoints' => %w{geo/proxy_git_ssh/info_refs_receive_pack geo/proxy_git_ssh/receive_pack},
|
2018-11-20 20:47:30 +05:30
|
|
|
# 'gl_username' => user.username,
|
|
|
|
# 'primary_repo' => geo_primary_http_url_to_repo(project_or_wiki)
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
2019-12-26 22:10:19 +05:30
|
|
|
def initialize(payload, console_messages)
|
2018-11-20 20:47:30 +05:30
|
|
|
@payload = payload
|
2019-12-26 22:10:19 +05:30
|
|
|
@console_messages = console_messages
|
2018-11-20 20:47:30 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|