2018-05-03 10:58:43 -04:00
|
|
|
# rubocop:disable Rails/Output
|
|
|
|
if defined?(Rails::Console)
|
|
|
|
# note that this will not print out when using `spring`
|
|
|
|
justify = 15
|
|
|
|
puts "-------------------------------------------------------------------------------------"
|
2018-05-30 12:52:36 -04:00
|
|
|
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})"
|
|
|
|
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}"
|
2018-05-03 10:58:43 -04:00
|
|
|
puts " #{Gitlab::Database.adapter_name}:".ljust(justify) + Gitlab::Database.version
|
|
|
|
puts "-------------------------------------------------------------------------------------"
|
|
|
|
end
|