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
bca56037
Commit
bca56037
authored
May 26, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix codestyle
parent
ecdbde3d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
git_version_check.rb
lib/system_check/app/git_version_check.rb
+1
-1
init_script_up_to_date_check.rb
lib/system_check/app/init_script_up_to_date_check.rb
+3
-4
projects_have_namespace_check.rb
lib/system_check/app/projects_have_namespace_check.rb
+4
-4
helpers.rb
lib/system_check/helpers.rb
+0
-3
No files found.
lib/system_check/app/git_version_check.rb
View file @
bca56037
...
...
@@ -17,7 +17,7 @@ module SystemCheck
end
def
show_error
puts
"Your git bin path is
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
"
$stdout
.
puts
"Your git bin path is
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
"
try_fixing_it
(
"Update your git to a version >=
#{
self
.
class
.
required_version
}
from
#{
self
.
class
.
current_version
}
"
...
...
lib/system_check/app/init_script_up_to_date_check.rb
View file @
bca56037
...
...
@@ -14,7 +14,7 @@ module SystemCheck
recipe_path
=
Rails
.
root
.
join
(
'lib/support/init.d/'
,
'gitlab'
)
unless
File
.
exist?
(
SCRIPT_PATH
)
puts
"can't check because of previous errors"
.
color
(
:magenta
)
$stdout
.
puts
"can't check because of previous errors"
.
color
(
:magenta
)
return
end
...
...
@@ -22,14 +22,13 @@ module SystemCheck
script_content
=
File
.
read
(
SCRIPT_PATH
)
if
recipe_content
==
script_content
puts
'yes'
.
color
(
:green
)
$stdout
.
puts
'yes'
.
color
(
:green
)
else
puts
'no'
.
color
(
:red
)
$stdout
.
puts
'no'
.
color
(
:red
)
show_error
end
end
def
show_error
try_fixing_it
(
'Re-download the init script'
...
...
lib/system_check/app/projects_have_namespace_check.rb
View file @
bca56037
...
...
@@ -9,15 +9,15 @@ module SystemCheck
end
def
multi_check
puts
''
$stdout
.
puts
''
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
print
sanitized_message
(
project
)
$stdout
.
print
sanitized_message
(
project
)
if
project
.
namespace
puts
'yes'
.
color
(
:green
)
$stdout
.
puts
'yes'
.
color
(
:green
)
else
puts
'no'
.
color
(
:red
)
$stdout
.
puts
'no'
.
color
(
:red
)
show_error
end
end
...
...
lib/system_check/helpers.rb
View file @
bca56037
...
...
@@ -75,6 +75,3 @@ module SystemCheck
end
end
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