summaryrefslogtreecommitdiff
path: root/lib/gitlab/gitaly_client/server_service.rb
blob: 2e1076d1f667935007ce4b355d0c2d46cd10b31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
        GitalyClient.call(@storage, :server_service, :server_info, Gitaly::ServerInfoRequest.new)
      end
    end
  end
end