Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/gitlab/info.rake')
-rw-r--r--lib/tasks/gitlab/info.rake13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake
index 4f7053b7629..26ffe2c3f7b 100644
--- a/lib/tasks/gitlab/info.rake
+++ b/lib/tasks/gitlab/info.rake
@@ -90,6 +90,19 @@ namespace :gitlab do
puts "- #{name}: \t#{repository_storage.gitaly_address}"
end
puts "GitLab Shell path:\t\t#{Gitlab.config.gitlab_shell.path}"
+
+ # check Gitaly version
+ puts ""
+ puts "Gitaly".color(:yellow)
+ Gitlab.config.repositories.storages.each do |storage_name, storage|
+ gitaly_server_service = Gitlab::GitalyClient::ServerService.new(storage_name)
+ gitaly_server_info = gitaly_server_service.info
+ puts "- #{storage_name} Address: \t#{storage.gitaly_address}"
+ puts "- #{storage_name} Version: \t#{gitaly_server_info.server_version}"
+ puts "- #{storage_name} Git Version: \t#{gitaly_server_info.git_version}"
+ rescue GRPC::DeadlineExceeded
+ puts "Unable to reach storage #{storage_name}".color(red)
+ end
end
end
end