diff options
-rwxr-xr-x | bin/check | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -12,13 +12,13 @@ resp = GitlabNet.new.check if resp.code == "200" print 'OK' else - puts "FAILED. code: #{resp.code}" + abort "FAILED. code: #{resp.code}" end puts "\nCheck directories and files: " config = GitlabConfig.new -dirs = [config.repos_path, config.auth_file, config.redis['bin']] +dirs = [config.repos_path, config.auth_file] dirs.each do |dir| abort("ERROR: missing option in config.yml") unless dir @@ -26,7 +26,13 @@ dirs.each do |dir| if File.exists?(dir) print 'OK' else - puts "FAILED" + abort "FAILED" end puts "\n" end + +print "Test redis-cli executable: " +abort('FAILED') unless system(*config.redis_command, '--version') + +print "Send ping to redis server: " +abort unless system(*config.redis_command, 'ping') |