Commit 02ccaf48 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

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

Enable console message in development

See merge request gitlab-org/gitlab!23652
parents e9474d60 13a96525
# rubocop:disable Rails/Output # rubocop:disable Rails/Output
if defined?(Rails::Console) if defined?(Rails::Console) || Rails.env.development?
# note that this will not print out when using `spring` # when using `spring` this will only print out the first time
justify = 15 justify = 15
puts '-' * 80 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 Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}"
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
......
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