2019-02-13 22:33:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Gitlab
|
|
|
|
module GitalyClient
|
|
|
|
# Meant for extraction of server data, and later maybe to perform misc task
|
|
|
|
#
|
|
|
|
# Not meant for connection logic, look in Gitlab::GitalyClient
|
|
|
|
class ServerService
|
|
|
|
def initialize(storage)
|
|
|
|
@storage = storage
|
|
|
|
end
|
|
|
|
|
|
|
|
def info
|
2018-11-08 19:23:39 +05:30
|
|
|
GitalyClient.call(@storage, :server_service, :server_info, Gitaly::ServerInfoRequest.new, timeout: GitalyClient.fast_timeout)
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|