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
Boxiang Sun
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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
lib/system_check/app/git_version_check.rb
lib/system_check/app/git_version_check.rb
+1
-1
lib/system_check/app/init_script_up_to_date_check.rb
lib/system_check/app/init_script_up_to_date_check.rb
+3
-4
lib/system_check/app/projects_have_namespace_check.rb
lib/system_check/app/projects_have_namespace_check.rb
+4
-4
lib/system_check/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