File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ resp = GitlabNet.new.check
1212if resp . code == "200"
1313 print 'OK'
1414else
15- puts "FAILED. code: #{ resp . code } "
15+ abort "FAILED. code: #{ resp . code } "
1616end
1717
1818puts "\n Check directories and files: "
@@ -25,7 +25,22 @@ dirs.each do |dir|
2525 if File . exists? ( dir )
2626 print 'OK'
2727 else
28- puts "FAILED"
28+ abort "FAILED"
2929 end
3030 puts "\n "
3131end
32+
33+ print "Testing redis-cli executable: "
34+ system ( *config . redis_command , '--version' , err : '/dev/null' )
35+ if $?. success?
36+ print "Sending ping to redis server: "
37+ system ( *config . redis_command , 'ping' , err : '/dev/null' , out : '/dev/null' )
38+ if $?. success?
39+ print 'OK'
40+ else
41+ abort "FAILED"
42+ end
43+ else
44+ abort "FAILED"
45+ end
46+ puts "\n "
You can’t perform that action at this time.
0 commit comments