Commit b03179b4 authored by Ahmad Sherif's avatar Ahmad Sherif

Print Go version in rake gitlab:env:info

parent 09c2aab4
---
title: Print Go version in rake gitlab:env:info
merge_request: 11241
author:
...@@ -16,6 +16,8 @@ namespace :gitlab do ...@@ -16,6 +16,8 @@ namespace :gitlab do
redis_version = run_and_match(%w(redis-cli --version), /redis-cli (\d+\.\d+\.\d+)/).to_a redis_version = run_and_match(%w(redis-cli --version), /redis-cli (\d+\.\d+\.\d+)/).to_a
# check Git version # check Git version
git_version = run_and_match([Gitlab.config.git.bin_path, '--version'], /git version ([\d\.]+)/).to_a git_version = run_and_match([Gitlab.config.git.bin_path, '--version'], /git version ([\d\.]+)/).to_a
# check Go version
go_version = run_and_match(%w(go version), /go version (.+)/).to_a
puts "" puts ""
puts "System information".color(:yellow) puts "System information".color(:yellow)
...@@ -30,6 +32,7 @@ namespace :gitlab do ...@@ -30,6 +32,7 @@ namespace :gitlab do
puts "Redis Version:\t#{redis_version[1] || "unknown".color(:red)}" puts "Redis Version:\t#{redis_version[1] || "unknown".color(:red)}"
puts "Git Version:\t#{git_version[1] || "unknown".color(:red)}" puts "Git Version:\t#{git_version[1] || "unknown".color(:red)}"
puts "Sidekiq Version:#{Sidekiq::VERSION}" puts "Sidekiq Version:#{Sidekiq::VERSION}"
puts "Go Version:\t#{go_version[1] || "unknown".color(:red)}"
# check database adapter # check database adapter
database_adapter = ActiveRecord::Base.connection.adapter_name.downcase database_adapter = ActiveRecord::Base.connection.adapter_name.downcase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment