Merge pull request #257 from mattkirby/redis_port_password

Add support for setting redis port and password
This commit is contained in:
Spencer McElmurry 2018-06-13 09:08:04 -07:00 committed by GitHub
commit c77e0c4c65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -86,8 +86,8 @@ module Vmpooler
parsed_config
end
def self.new_redis(host = 'localhost')
Redis.new(host: host)
def self.new_redis(host = 'localhost', port = nil, password = nil)
Redis.new(host: host, port: port, password: password)
end
def self.new_logger(logfile)