diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 18:09:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 18:09:04 +0000 |
commit | 390582e118752426acf5cb25ec99103d312d891c (patch) | |
tree | bb0b1a6a46632024ffc3ba1983e4ebcb0fab4428 /config/initializers/console_message.rb | |
parent | 1ea1db491c8bc90789acda45c9002aaa5c4dc498 (diff) | |
download | gitlab-ce-390582e118752426acf5cb25ec99103d312d891c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/initializers/console_message.rb')
-rw-r--r-- | config/initializers/console_message.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/initializers/console_message.rb b/config/initializers/console_message.rb index 04c109aa844..490a2a48a9a 100644 --- a/config/initializers/console_message.rb +++ b/config/initializers/console_message.rb @@ -1,10 +1,10 @@ # rubocop:disable Rails/Output -if defined?(Rails::Console) - # note that this will not print out when using `spring` +if defined?(Rails::Console) || Rails.env.development? + # when using `spring` this will only print out the first time justify = 15 puts '-' * 80 - puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})" + puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}" puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}" puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version |