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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
c5c5f18b
Commit
c5c5f18b
authored
May 30, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better handle a missing gitlab-shell version
parent
d0d551b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/initializers/console_message.rb
config/initializers/console_message.rb
+2
-2
No files found.
config/initializers/console_message.rb
View file @
c5c5f18b
...
...
@@ -3,8 +3,8 @@ if defined?(Rails::Console)
# note that this will not print out when using `spring`
justify
=
15
puts
"-------------------------------------------------------------------------------------"
puts
" Git
l
ab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
.
revision
}
)"
puts
" Git
lab Shell:"
.
ljust
(
justify
)
+
Gitlab
::
Shell
.
new
.
version
puts
" Git
L
ab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
.
revision
}
)"
puts
" Git
Lab Shell:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
Shell
.
new
.
version
)
}
"
puts
"
#{
Gitlab
::
Database
.
adapter_name
}
:"
.
ljust
(
justify
)
+
Gitlab
::
Database
.
version
puts
"-------------------------------------------------------------------------------------"
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