Class: HealthCheck::ResqueHealthCheck
- Inherits:
-
Object
- Object
- HealthCheck::ResqueHealthCheck
- Extended by:
- BaseHealthCheck
- Defined in:
- lib/health_check/resque_health_check.rb
Class Method Summary collapse
Methods included from BaseHealthCheck
Class Method Details
.check ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/health_check/resque_health_check.rb', line 7 def self.check raise "Wrong configuration. Missing 'resque' gem" unless defined?(::Resque) res = ::Resque.redis.ping res == 'PONG' ? '' : "Resque.redis.ping returned #{res.inspect} instead of PONG" rescue Exception => e create_error 'resque-redis', e. end |