summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2016-05-16 16:20:46 +0000
committerJacob Vosmaer (GitLab) <jacob@gitlab.com>2016-05-16 16:20:46 +0000
commit404d0b586cfde992e56d9888d03d88766b2949a1 (patch)
tree43597f05afc78e4eccf0c1f4919c69820cbb7b95 /bin
parentf0f1bbec8ad5d5fade7c0efeee22ba9b9bc44f07 (diff)
parente88ec0a4ac7e89f078ef8fd53fa74ec5d6a4812d (diff)
downloadgitlab-shell-404d0b586cfde992e56d9888d03d88766b2949a1.tar.gz
Merge branch 'use-redis-rb-client' into 'master'
Use Redis Ruby client instead of shelling out to redis-cli Previously the post-receive hook fired redis-cli, but if the argument list was too long the hook would silently fail. Instead of shelling out to redis-cli, we use a Ruby client to send the same message. Closes gitlab-org/gitlab-ce#17329 See merge request !59
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