Commit 1e2a9604 authored by Stan Hu's avatar Stan Hu

Merge branch 'mrchrisw/rake-redis' into 'master'

Add redis version to info rake task

See merge request !8283
parents 7b6694e5 05a5ae2f
...@@ -27,6 +27,7 @@ Ruby Version: 2.1.5p273 ...@@ -27,6 +27,7 @@ Ruby Version: 2.1.5p273
Gem Version: 2.4.3 Gem Version: 2.4.3
Bundler Version: 1.7.6 Bundler Version: 1.7.6
Rake Version: 10.3.2 Rake Version: 10.3.2
Redis Version: 3.2.5
Sidekiq Version: 2.17.8 Sidekiq Version: 2.17.8
GitLab information GitLab information
......
...@@ -11,8 +11,10 @@ namespace :gitlab do ...@@ -11,8 +11,10 @@ namespace :gitlab do
gem_version = run_command(%W(gem --version)) gem_version = run_command(%W(gem --version))
# check Bundler version # check Bundler version
bunder_version = run_and_match(%W(bundle --version), /[\d\.]+/).try(:to_s) bunder_version = run_and_match(%W(bundle --version), /[\d\.]+/).try(:to_s)
# check Bundler version # check Rake version
rake_version = run_and_match(%W(rake --version), /[\d\.]+/).try(:to_s) rake_version = run_and_match(%W(rake --version), /[\d\.]+/).try(:to_s)
# check redis version
redis_version = run_and_match(%W(redis-cli --version), /redis-cli (\d+\.\d+\.\d+)/).to_a
puts "" puts ""
puts "System information".color(:yellow) puts "System information".color(:yellow)
...@@ -24,6 +26,7 @@ namespace :gitlab do ...@@ -24,6 +26,7 @@ namespace :gitlab do
puts "Gem Version:\t#{gem_version || "unknown".color(:red)}" puts "Gem Version:\t#{gem_version || "unknown".color(:red)}"
puts "Bundler Version:#{bunder_version || "unknown".color(:red)}" puts "Bundler Version:#{bunder_version || "unknown".color(:red)}"
puts "Rake Version:\t#{rake_version || "unknown".color(:red)}" puts "Rake Version:\t#{rake_version || "unknown".color(:red)}"
puts "Redis Version:\t#{redis_version[1] || "unknown".color(:red)}"
puts "Sidekiq Version:#{Sidekiq::VERSION}" puts "Sidekiq Version:#{Sidekiq::VERSION}"
......
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