summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-05-09 00:21:10 -0700
committerStan Hu <stanhu@gmail.com>2016-05-12 07:00:19 -0500
commit7f7359b1381d376b81fd9b81120d8cfa0231a526 (patch)
treebec8110ed8c14fb0dc38ced1ebf21177dbc2acc5 /bin
parentf0f1bbec8ad5d5fade7c0efeee22ba9b9bc44f07 (diff)
downloadgitlab-shell-7f7359b1381d376b81fd9b81120d8cfa0231a526.tar.gz
Use Redis Ruby client instead of shelling out to redis-cli
Closes gitlab-org/gitlab-ce#17329
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/check b/bin/check
index b90e15d..7aa1fe4 100755
--- a/bin/check
+++ b/bin/check
@@ -36,8 +36,5 @@ dirs.each do |dir|
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')
+abort unless GitlabNet.new.redis_client.ping