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
Léo-Paul Géneau
gitlab-ce
Commits
1e2a9604
Commit
1e2a9604
authored
Jan 25, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mrchrisw/rake-redis' into 'master'
Add redis version to info rake task See merge request !8283
parents
7b6694e5
05a5ae2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
doc/administration/raketasks/maintenance.md
doc/administration/raketasks/maintenance.md
+1
-0
lib/tasks/gitlab/info.rake
lib/tasks/gitlab/info.rake
+4
-1
No files found.
doc/administration/raketasks/maintenance.md
View file @
1e2a9604
...
@@ -27,6 +27,7 @@ Ruby Version: 2.1.5p273
...
@@ -27,6 +27,7 @@ Ruby Version: 2.1.5p273
Gem Version: 2.4.3
Gem Version: 2.4.3
Bundler Version: 1.7.6
Bundler Version: 1.7.6
Rake Version: 10.3.2
Rake Version: 10.3.2
Redis Version: 3.2.5
Sidekiq Version: 2.17.8
Sidekiq Version: 2.17.8
GitLab information
GitLab information
...
...
lib/tasks/gitlab/info.rake
View file @
1e2a9604
...
@@ -11,8 +11,10 @@ namespace :gitlab do
...
@@ -11,8 +11,10 @@ namespace :gitlab do
gem_version
=
run_command
(
%W(gem --version)
)
gem_version
=
run_command
(
%W(gem --version)
)
# check Bundler version
# check Bundler version
bunder_version
=
run_and_match
(
%W(bundle --version)
,
/[\d\.]+/
).
try
(
:to_s
)
bunder_version
=
run_and_match
(
%W(bundle --version)
,
/[\d\.]+/
).
try
(
:to_s
)
# check
Bundler
version
# check
Rake
version
rake_version
=
run_and_match
(
%W(rake --version)
,
/[\d\.]+/
).
try
(
:to_s
)
rake_version
=
run_and_match
(
%W(rake --version)
,
/[\d\.]+/
).
try
(
:to_s
)
# check redis version
redis_version
=
run_and_match
(
%W(redis-cli --version)
,
/redis-cli (\d+\.\d+\.\d+)/
).
to_a
puts
""
puts
""
puts
"System information"
.
color
(
:yellow
)
puts
"System information"
.
color
(
:yellow
)
...
@@ -24,6 +26,7 @@ namespace :gitlab do
...
@@ -24,6 +26,7 @@ namespace :gitlab do
puts
"Gem Version:
\t
#{
gem_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Gem Version:
\t
#{
gem_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Bundler Version:
#{
bunder_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Bundler Version:
#{
bunder_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Rake Version:
\t
#{
rake_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Rake Version:
\t
#{
rake_version
||
"unknown"
.
color
(
:red
)
}
"
puts
"Redis Version:
\t
#{
redis_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Sidekiq Version:
#{
Sidekiq
::
VERSION
}
"
puts
"Sidekiq Version:
#{
Sidekiq
::
VERSION
}
"
...
...
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