diff options
author | Stan Hu <stanhu@gmail.com> | 2017-01-25 04:12:12 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-01-25 04:12:12 +0000 |
commit | 1e2a9604673b7b4e94d2612606fbf1b16e08a20d (patch) | |
tree | e74b346bb23eb2c1d8b7a7866d617a5b8cfd8654 /lib | |
parent | 7b6694e53c2f58820f2867bae69cefe4d2f4ca57 (diff) | |
parent | 05a5ae2ff233fb937b691edbc818b38346707d8b (diff) | |
download | gitlab-ce-1e2a9604673b7b4e94d2612606fbf1b16e08a20d.tar.gz |
Merge branch 'mrchrisw/rake-redis' into 'master'
Add redis version to info rake task
See merge request !8283
Diffstat (limited to 'lib')
-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}" |