Commit 75295c6f authored by Robert Speicher's avatar Robert Speicher

Wrap EE-only console configuration in `ee` block

parent 3d414d76
...@@ -2,17 +2,18 @@ ...@@ -2,17 +2,18 @@
if defined?(Rails::Console) if defined?(Rails::Console)
# note that this will not print out when using `spring` # note that this will not print out when using `spring`
justify = 15 justify = 15
puts "-------------------------------------------------------------------------------------"
puts '-' * 80
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})" puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})"
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}" 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::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
# EE-specific start Gitlab.ee do
if Gitlab::Geo.enabled? if Gitlab::Geo.enabled?
puts " Geo enabled:".ljust(justify) + 'yes' puts " Geo enabled:".ljust(justify) + 'yes'
puts " Geo server:".ljust(justify) + EE::GeoHelper.current_node_human_status puts " Geo server:".ljust(justify) + EE::GeoHelper.current_node_human_status
end
end end
# EE specific end
puts "-------------------------------------------------------------------------------------" puts '-' * 80
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment