Class: Gitlab::GitalyClient::ServerService

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/gitaly_client/server_service.rb

Overview

Meant for extraction of server data, and later maybe to perform misc task

Not meant for connection logic, look in Gitlab::GitalyClient

Instance Method Summary collapse

Constructor Details

#initialize(storage) ⇒ ServerService

Returns a new instance of ServerService.


9
10
11
# File 'lib/gitlab/gitaly_client/server_service.rb', line 9

def initialize(storage)
  @storage = storage
end

Instance Method Details

#disk_statisticsObject


17
18
19
# File 'lib/gitlab/gitaly_client/server_service.rb', line 17

def disk_statistics
  GitalyClient.call(@storage, :server_service, :disk_statistics, Gitaly::DiskStatisticsRequest.new, timeout: GitalyClient.fast_timeout)
end

#infoObject


13
14
15
# File 'lib/gitlab/gitaly_client/server_service.rb', line 13

def info
  GitalyClient.call(@storage, :server_service, :server_info, Gitaly::ServerInfoRequest.new, timeout: GitalyClient.fast_timeout)
end

#storage_disk_statisticsObject


25
26
27
# File 'lib/gitlab/gitaly_client/server_service.rb', line 25

def storage_disk_statistics
  storage_specific(disk_statistics)
end

#storage_infoObject


21
22
23
# File 'lib/gitlab/gitaly_client/server_service.rb', line 21

def storage_info
  storage_specific(info)
end