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
ec548983
Commit
ec548983
authored
May 03, 2018
by
Brett Walker
Committed by
Robert Speicher
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output some useful information when running the rails console
parent
17f598e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
changelogs/unreleased/bw-add-console-message.yml
changelogs/unreleased/bw-add-console-message.yml
+5
-0
config/initializers/console_message.rb
config/initializers/console_message.rb
+10
-0
No files found.
changelogs/unreleased/bw-add-console-message.yml
0 → 100644
View file @
ec548983
---
title
:
Output some useful information when running the rails console
merge_request
:
18697
author
:
type
:
added
config/initializers/console_message.rb
0 → 100644
View file @
ec548983
# rubocop:disable Rails/Output
if
defined?
(
Rails
::
Console
)
# note that this will not print out when using `spring`
justify
=
15
puts
"-------------------------------------------------------------------------------------"
puts
" Gitlab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
::
REVISION
}
)"
puts
" Gitlab Shell:"
.
ljust
(
justify
)
+
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