diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-08 12:15:46 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-08 12:15:46 +0100 |
commit | 6c8c9ff5aa117b198d487510b514cc1122cfb2cf (patch) | |
tree | b18491f61f8252ee3612e542e10128649d68ac1c /lib/gitlab_config.rb | |
parent | e68025401538eed3a11b6d874c6455acf49ef664 (diff) | |
download | gitlab-shell-6c8c9ff5aa117b198d487510b514cc1122cfb2cf.tar.gz |
Bypass shell and use stdlib JSON for GitlabUpdate
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r-- | lib/gitlab_config.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index 9dc5c66..ad15247 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -48,12 +48,12 @@ class GitlabConfig if redis.empty? # Default to old method of connecting to redis # for users that haven't updated their configuration - "env -i redis-cli" + %W(env -i redis-cli) else if redis.has_key?("socket") - "#{redis['bin']} -s #{redis['socket']}" + %W(#{redis['bin']} -s #{redis['socket']}) else - "#{redis['bin']} -h #{redis['host']} -p #{redis['port']}" + %W(#{redis['bin']} -h #{redis['host']} -p #{redis['port']}) end end end |