Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-27 21:09:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-27 21:09:04 +0300
commit390582e118752426acf5cb25ec99103d312d891c (patch)
treebb0b1a6a46632024ffc3ba1983e4ebcb0fab4428 /config
parent1ea1db491c8bc90789acda45c9002aaa5c4dc498 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r--config/initializers/console_message.rb6
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