debian-mirror-gitlab/config/initializers/console_message.rb

20 lines
629 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
# rubocop:disable Rails/Output
if defined?(Rails::Console)
# note that this will not print out when using `spring`
justify = 15
2019-09-30 21:07:59 +05:30
puts '-' * 80
2018-11-08 19:23:39 +05:30
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})"
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}"
2019-07-07 11:18:12 +05:30
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
2019-09-30 21:07:59 +05:30
Gitlab.ee do
if Gitlab::Geo.enabled?
puts " Geo enabled:".ljust(justify) + 'yes'
puts " Geo server:".ljust(justify) + EE::GeoHelper.current_node_human_status
end
end
puts '-' * 80
2018-10-15 14:42:47 +05:30
end