diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-03 06:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-03 06:08:30 +0300 |
commit | f4d27d532e3abeecd1caffeb3a56e698ae982e5b (patch) | |
tree | 27a1b43761cd6eedbdbf57b46b8fd9c5cc519a61 /config | |
parent | a2a712139fc7fa58aa02b143f2767286d28ef28d (diff) |
Add latest changes from gitlab-org/gitlab@master
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 74d98dec79a..7272583f262 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) +if Gitlab::Runtime.console? # note that this will not print out when using `spring` 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)}" if Gitlab::Database.exists? |