Module: Health

Defined in:
lib/health.rb,
lib/health/checks.rb,
lib/health/checker.rb,
lib/health/version.rb,
lib/health/endpoint.rb,
lib/health/checks/rollout.rb

Defined Under Namespace

Modules: Checks Classes: Checker, Endpoint

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.checkerObject



7
8
9
# File 'lib/health.rb', line 7

def checker
  @checker ||= Checker.new
end

.configure(&block) ⇒ Object



11
12
13
# File 'lib/health.rb', line 11

def configure(&block)
  checker.configure(&block)
end

.endpoint_access_policy(&block) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/health.rb', line 23

def endpoint_access_policy(&block)
  if block_given?
    @endpoint_access_policy = block
  else
    @endpoint_access_policy ||= proc { true }
  end
end

.namesObject



19
20
21
# File 'lib/health.rb', line 19

def names
  checker.names
end

.perform(name) ⇒ Object



15
16
17
# File 'lib/health.rb', line 15

def perform(name)
  checker.perform(name)
end