2018-10-15 14:42:47 +05:30
|
|
|
# rubocop:disable Rails/Output
|
2020-03-09 13:42:32 +05:30
|
|
|
if Gitlab::Runtime.console?
|
2018-10-15 14:42:47 +05:30
|
|
|
# note that this will not print out when using `spring`
|
|
|
|
justify = 15
|
2019-09-30 21:07:59 +05:30
|
|
|
|
|
|
|
puts '-' * 80
|
2020-03-09 13:42:32 +05:30
|
|
|
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}"
|
2020-04-08 14:13:33 +05:30
|
|
|
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.version)}"
|
2019-09-30 21:07:59 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
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-09-30 21:07:59 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
puts '-' * 80
|
2018-10-15 14:42:47 +05:30
|
|
|
end
|