diff options
author | Chris Wilson <chris@chrisjwilson.com> | 2016-12-23 12:02:19 +0800 |
---|---|---|
committer | Chris Wilson <chris@chrisjwilson.com> | 2017-01-24 18:55:59 -0600 |
commit | 05a5ae2ff233fb937b691edbc818b38346707d8b (patch) | |
tree | a0b31edd05ce39c776858321374e66e90dcdf399 /lib/tasks | |
parent | a0715f079c143a362a7f6157db45020b8432003e (diff) | |
download | gitlab-ce-05a5ae2ff233fb937b691edbc818b38346707d8b.tar.gz |
Add redis version to info rake taskmrchrisw/rake-redis
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/info.rake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake index dffea8ed155..f7c831892ee 100644 --- a/lib/tasks/gitlab/info.rake +++ b/lib/tasks/gitlab/info.rake @@ -11,8 +11,10 @@ namespace :gitlab do gem_version = run_command(%W(gem --version)) # check Bundler version 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) + # check redis version + redis_version = run_and_match(%W(redis-cli --version), /redis-cli (\d+\.\d+\.\d+)/).to_a puts "" puts "System information".color(:yellow) @@ -24,6 +26,7 @@ namespace :gitlab do puts "Gem Version:\t#{gem_version || "unknown".color(:red)}" puts "Bundler Version:#{bunder_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}" |