Commit 9fbbcfbd authored by Thong Kuah's avatar Thong Kuah

Merge branch 'bw-foss-console-msg-revisited' into 'master'

Enable console message show if running EE or FOSS

See merge request gitlab-org/gitlab!24109
parents 2e336320 d0e6ff73
# 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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment