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
b03179b4
Commit
b03179b4
authored
May 10, 2017
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print Go version in rake gitlab:env:info
parent
09c2aab4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/feature-print-go-version-in-env-info.yml
...elogs/unreleased/feature-print-go-version-in-env-info.yml
+4
-0
lib/tasks/gitlab/info.rake
lib/tasks/gitlab/info.rake
+3
-0
No files found.
changelogs/unreleased/feature-print-go-version-in-env-info.yml
0 → 100644
View file @
b03179b4
---
title
:
Print Go version in rake gitlab:env:info
merge_request
:
11241
author
:
lib/tasks/gitlab/info.rake
View file @
b03179b4
...
@@ -16,6 +16,8 @@ namespace :gitlab do
...
@@ -16,6 +16,8 @@ namespace :gitlab do
redis_version
=
run_and_match
(
%w(redis-cli --version)
,
/redis-cli (\d+\.\d+\.\d+)/
).
to_a
redis_version
=
run_and_match
(
%w(redis-cli --version)
,
/redis-cli (\d+\.\d+\.\d+)/
).
to_a
# check Git version
# check Git version
git_version
=
run_and_match
([
Gitlab
.
config
.
git
.
bin_path
,
'--version'
],
/git version ([\d\.]+)/
).
to_a
git_version
=
run_and_match
([
Gitlab
.
config
.
git
.
bin_path
,
'--version'
],
/git version ([\d\.]+)/
).
to_a
# check Go version
go_version
=
run_and_match
(
%w(go version)
,
/go version (.+)/
).
to_a
puts
""
puts
""
puts
"System information"
.
color
(
:yellow
)
puts
"System information"
.
color
(
:yellow
)
...
@@ -30,6 +32,7 @@ namespace :gitlab do
...
@@ -30,6 +32,7 @@ namespace :gitlab do
puts
"Redis Version:
\t
#{
redis_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Redis Version:
\t
#{
redis_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Git Version:
\t
#{
git_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Git Version:
\t
#{
git_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Sidekiq Version:
#{
Sidekiq
::
VERSION
}
"
puts
"Sidekiq Version:
#{
Sidekiq
::
VERSION
}
"
puts
"Go Version:
\t
#{
go_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
# check database adapter
# check database adapter
database_adapter
=
ActiveRecord
::
Base
.
connection
.
adapter_name
.
downcase
database_adapter
=
ActiveRecord
::
Base
.
connection
.
adapter_name
.
downcase
...
...
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