BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
feature-print-go-version-in-env-info.yml
...elogs/unreleased/feature-print-go-version-in-env-info.yml
+4
-0
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
redis_version
=
run_and_match
(
%w(redis-cli --version)
,
/redis-cli (\d+\.\d+\.\d+)/
).
to_a
# check Git version
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
"System information"
.
color
(
:yellow
)
...
...
@@ -30,6 +32,7 @@ namespace :gitlab do
puts
"Redis Version:
\t
#{
redis_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Git Version:
\t
#{
git_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
puts
"Sidekiq Version:
#{
Sidekiq
::
VERSION
}
"
puts
"Go Version:
\t
#{
go_version
[
1
]
||
"unknown"
.
color
(
:red
)
}
"
# check database adapter
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