diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-07-08 14:47:16 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-07-08 15:04:38 -0500 |
commit | 3d12f07331f8031748bdd281993c490d3edfd6da (patch) | |
tree | 51c9a5a48712ab6e9359d2140b180b253dabe20e /config/initializers/console_message.rb | |
parent | 9f677359a78c78bce702411c4a0da5d7f3f429d6 (diff) | |
download | gitlab-ce-3d12f07331f8031748bdd281993c490d3edfd6da.tar.gz |
CE-EE parity for files in config/initializers
Diffstat (limited to 'config/initializers/console_message.rb')
-rw-r--r-- | config/initializers/console_message.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/config/initializers/console_message.rb b/config/initializers/console_message.rb index 05eb395028d..04c109aa844 100644 --- a/config/initializers/console_message.rb +++ b/config/initializers/console_message.rb @@ -2,9 +2,18 @@ if defined?(Rails::Console) # note that this will not print out when using `spring` justify = 15 - puts "-------------------------------------------------------------------------------------" + + puts '-' * 80 puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})" puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}" puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version - puts "-------------------------------------------------------------------------------------" + + 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 end |