Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
954b8603
Commit
954b8603
authored
May 07, 2018
by
Brett Walker
Committed by
Robert Speicher
May 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Geo information to console message
parent
53d04fa3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
config/initializers/console_message.rb
config/initializers/console_message.rb
+9
-0
ee/changelogs/unreleased/bw-add-geo-console-message.yml
ee/changelogs/unreleased/bw-add-geo-console-message.yml
+5
-0
No files found.
config/initializers/console_message.rb
View file @
954b8603
...
@@ -6,5 +6,14 @@ if defined?(Rails::Console)
...
@@ -6,5 +6,14 @@ if defined?(Rails::Console)
puts
" Gitlab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
::
REVISION
}
)"
puts
" Gitlab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
::
REVISION
}
)"
puts
" Gitlab Shell:"
.
ljust
(
justify
)
+
Gitlab
::
Shell
.
new
.
version
puts
" Gitlab Shell:"
.
ljust
(
justify
)
+
Gitlab
::
Shell
.
new
.
version
puts
"
#{
Gitlab
::
Database
.
adapter_name
}
:"
.
ljust
(
justify
)
+
Gitlab
::
Database
.
version
puts
"
#{
Gitlab
::
Database
.
adapter_name
}
:"
.
ljust
(
justify
)
+
Gitlab
::
Database
.
version
# EE-specific start
if
Gitlab
::
Geo
.
enabled?
puts
" Geo enabled:"
.
ljust
(
justify
)
+
'yes'
puts
" Geo server:"
.
ljust
(
justify
)
+
(
Gitlab
::
Geo
.
primary?
?
'primary'
:
'secondary'
)
end
# EE specific end
puts
"-------------------------------------------------------------------------------------"
puts
"-------------------------------------------------------------------------------------"
end
end
ee/changelogs/unreleased/bw-add-geo-console-message.yml
0 → 100644
View file @
954b8603
---
title
:
Add Geo information to console message
merge_request
:
5588
author
:
type
:
changed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment