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
|
|
|
|
puts "-------------------------------------------------------------------------------------"
|
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-05-18 00:54:41 +05:30
|
|
|
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
|
2018-10-15 14:42:47 +05:30
|
|
|
puts "-------------------------------------------------------------------------------------"
|
|
|
|
end
|