class Deimos::Status::Manager

Attributes

checks[R]

Public Instance Methods

add(name, &block) click to toggle source
# File lib/deimos/status/manager.rb, line 10
def add(name, &block)
  Deimos.logger.info "Status: Reporting #{name} status..."

  checks[name] = block || Proc.new { true }
end
run!() click to toggle source
# File lib/deimos/status/manager.rb, line 16
def run!
  Deimos::Status::Runner.new(checks)
end