2018-05-03 14:58:43 +00:00
|
|
|
# rubocop:disable Rails/Output
|
2020-01-27 18:09:04 +00:00
|
|
|
if defined?(Rails::Console) || Rails.env.development?
|
|
|
|
# when using `spring` this will only print out the first time
|
2018-05-03 14:58:43 +00:00
|
|
|
justify = 15
|
2019-07-08 19:47:16 +00:00
|
|
|
|
|
|
|
puts '-' * 80
|
2020-01-27 18:09:04 +00:00
|
|
|
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}"
|
2018-05-30 16:52:36 +00:00
|
|
|
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}"
|
2019-03-21 20:05:01 +00:00
|
|
|
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
|
2019-07-08 19:47:16 +00:00
|
|
|
|
|
|
|
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-05-03 14:58:43 +00:00
|
|
|
end
|