# File lib/sensu/redis.rb, line 7 def self.connect(options={}) options ||= Hash.new connection = EM::Protocols::Redis.connect(options) connection.info do |info| if info[:redis_version] < '1.3.14' klass = EM::Protocols::Redis::RedisError message = 'redis version must be >= 2.0 RC 1' connection.error(klass, message) end end connection end