Popen (at least on OSX) expects an Array, not a String

This was causing the gitlab:check task to exit prematurely with the
error "System commands must be given as an array of strings."
This commit is contained in:
Robert Speicher 2014-03-07 21:35:45 -05:00
parent c3f088d261
commit c5f76e5939

View file

@ -255,7 +255,7 @@ namespace :gitlab do
def check_redis_version
print "Redis version >= 2.0.0? ... "
if run_and_match("redis-cli --version", /redis-cli 2.\d.\d/)
if run_and_match(%W(redis-cli --version), /redis-cli 2.\d.\d/)
puts "yes".green
else
puts "no".red