2018-05-03 14:58:43 +00:00
|
|
|
# rubocop:disable Rails/Output
|
2020-02-03 03:08:30 +00:00
|
|
|
if Gitlab::Runtime.console?
|
2020-01-28 15:08:36 +00:00
|
|
|
# note that this will not print out when using `spring`
|
2018-05-03 14:58:43 +00:00
|
|
|
justify = 15
|
2019-07-08 19:47:16 +00:00
|
|
|
|
|
|
|
puts '-' * 80
|
2020-02-03 03:08:30 +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-07-08 19:47:16 +00:00
|
|
|
|
2020-01-29 09:08:49 +00:00
|
|
|
if Gitlab::Database.exists?
|
|
|
|
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
|
|
|
|
|
|
|
|
Gitlab.ee do
|
|
|
|
if Gitlab::Geo.connected? && Gitlab::Geo.enabled?
|
|
|
|
puts " Geo enabled:".ljust(justify) + 'yes'
|
|
|
|
puts " Geo server:".ljust(justify) + EE::GeoHelper.current_node_human_status
|
|
|
|
end
|
2019-07-08 19:47:16 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
puts '-' * 80
|
2018-05-03 14:58:43 +00:00
|
|
|
end
|