class Gesund::Checks::RedisConnection
Public Class Methods
new(options={})
click to toggle source
# File lib/gesund/checks/redis_connection.rb, line 6 def initialize(options={}) begin if ::Redis.new(options).ping == "PONG" self.pass "Redis PING = PONG" else self.fail "Redis PING != PONG" end rescue => e self.fail "#{self.class} ERROR: #{e.class}: #{e.message}" end end