Module: HealthCheck

Defined in:
lib/health_check.rb,
lib/health_check/utils.rb,
lib/health_check/version.rb,
lib/health_check/s3_health_check.rb,
lib/health_check/redis_health_check.rb,
lib/health_check/resque_health_check.rb,
lib/health_check/sidekiq_health_check.rb,
lib/health_check/health_check_controller.rb,
lib/health_check/middleware_health_check.rb

Overview

Copyright © 2010-2013 Ian Heggie, released under the MIT license. See MIT-LICENSE for details.

Defined Under Namespace

Classes: Engine, HealthCheckController, MiddlewareHealthcheck, RedisHealthCheck, ResqueHealthCheck, S3HealthCheck, SidekiqHealthCheck, Utils

Constant Summary collapse

VERSION =
'3.0.1'

Class Method Summary collapse

Class Method Details

.add_custom_check(name = 'custom', &block) ⇒ Object



80
81
82
83
# File 'lib/health_check.rb', line 80

def self.add_custom_check(name = 'custom', &block)
  custom_checks[name] ||= []
  custom_checks[name] << block
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (HealthCheck)

    the object that the method was called on



85
86
87
# File 'lib/health_check.rb', line 85

def self.setup
  yield self
end