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
75295c6f
Commit
75295c6f
authored
Jul 08, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap EE-only console configuration in `ee` block
parent
3d414d76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
config/initializers/console_message.rb
config/initializers/console_message.rb
+8
-7
No files found.
config/initializers/console_message.rb
View file @
75295c6f
...
@@ -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
# EE specific
end
end
puts
"-------------------------------------------------------------------------------------"
puts
'-'
*
80
end
end
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