diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-05-26 03:34:25 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 15:33:03 +0300 |
commit | bca5603740f77667dda6355c457ad1791b4fa42e (patch) | |
tree | 219075400551107e22c474ae3964e14ff680190b /lib/system_check/app/init_script_up_to_date_check.rb | |
parent | ecdbde3d95b7abf11bae47d3a3b05693d84c27cc (diff) |
Fix codestyle
Diffstat (limited to 'lib/system_check/app/init_script_up_to_date_check.rb')
-rw-r--r-- | lib/system_check/app/init_script_up_to_date_check.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/system_check/app/init_script_up_to_date_check.rb b/lib/system_check/app/init_script_up_to_date_check.rb index 28c1451b8d2..015c7ed1731 100644 --- a/lib/system_check/app/init_script_up_to_date_check.rb +++ b/lib/system_check/app/init_script_up_to_date_check.rb @@ -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' |