Commit bca56037 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix codestyle

parent ecdbde3d
...@@ -17,7 +17,7 @@ module SystemCheck ...@@ -17,7 +17,7 @@ module SystemCheck
end end
def show_error 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( try_fixing_it(
"Update your git to a version >= #{self.class.required_version} from #{self.class.current_version}" "Update your git to a version >= #{self.class.required_version} from #{self.class.current_version}"
......
...@@ -14,7 +14,7 @@ module SystemCheck ...@@ -14,7 +14,7 @@ module SystemCheck
recipe_path = Rails.root.join('lib/support/init.d/', 'gitlab') recipe_path = Rails.root.join('lib/support/init.d/', 'gitlab')
unless File.exist?(SCRIPT_PATH) 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 return
end end
...@@ -22,14 +22,13 @@ module SystemCheck ...@@ -22,14 +22,13 @@ module SystemCheck
script_content = File.read(SCRIPT_PATH) script_content = File.read(SCRIPT_PATH)
if recipe_content == script_content if recipe_content == script_content
puts 'yes'.color(:green) $stdout.puts 'yes'.color(:green)
else else
puts 'no'.color(:red) $stdout.puts 'no'.color(:red)
show_error show_error
end end
end end
def show_error def show_error
try_fixing_it( try_fixing_it(
'Re-download the init script' 'Re-download the init script'
......
...@@ -9,15 +9,15 @@ module SystemCheck ...@@ -9,15 +9,15 @@ module SystemCheck
end end
def multi_check def multi_check
puts '' $stdout.puts ''
Project.find_each(batch_size: 100) do |project| Project.find_each(batch_size: 100) do |project|
print sanitized_message(project) $stdout.print sanitized_message(project)
if project.namespace if project.namespace
puts 'yes'.color(:green) $stdout.puts 'yes'.color(:green)
else else
puts 'no'.color(:red) $stdout.puts 'no'.color(:red)
show_error show_error
end end
end end
......
...@@ -75,6 +75,3 @@ module SystemCheck ...@@ -75,6 +75,3 @@ module SystemCheck
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment