module HealthCheck

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

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

Constants

VERSION

Public Class Methods

add_custom_check(name = 'custom', &block) click to toggle source
# File lib/health_check.rb, line 98
def self.add_custom_check(name = 'custom', &block)
  custom_checks[name] ||= [ ]
  custom_checks[name] << block
end
on_failure(&block) click to toggle source
# File lib/health_check.rb, line 108
def self.on_failure(&block)
  failure_callbacks ||= [ ]
  failure_callbacks << block
end
on_success(&block) click to toggle source
# File lib/health_check.rb, line 103
def self.on_success(&block)
  success_callbacks ||= [ ]
  success_callbacks << block
end
setup() { |self| ... } click to toggle source
# File lib/health_check.rb, line 113
def self.setup
  yield self
end