diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-05-30 11:52:36 -0500 |
---|---|---|
committer | Dennis Tang <dtang@gitlab.com> | 2018-05-31 14:37:40 +0200 |
commit | da9cc1b91fa34dc91e797fba38f23cfc53e50a09 (patch) | |
tree | 085d6e5c9e245f8ac39033b26a3f126299c91973 /config | |
parent | 6961ef1a9a939b0defa27919710e50e654939c3b (diff) | |
download | gitlab-ce-da9cc1b91fa34dc91e797fba38f23cfc53e50a09.tar.gz |
better handle a missing gitlab-shell version
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/console_message.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/console_message.rb b/config/initializers/console_message.rb index 2c46a25f365..f7c26732e6d 100644 --- a/config/initializers/console_message.rb +++ b/config/initializers/console_message.rb @@ -3,8 +3,8 @@ if defined?(Rails::Console) # note that this will not print out when using `spring` justify = 15 puts "-------------------------------------------------------------------------------------" - puts " Gitlab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})" - puts " Gitlab Shell:".ljust(justify) + Gitlab::Shell.new.version + puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})" + puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}" puts " #{Gitlab::Database.adapter_name}:".ljust(justify) + Gitlab::Database.version puts "-------------------------------------------------------------------------------------" end |