From 390582e118752426acf5cb25ec99103d312d891c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 27 Jan 2020 18:09:04 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- config/initializers/console_message.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/initializers/console_message.rb') 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 -- cgit v1.2.1