Module: HealthInspector::Check

Included in:
HealthInspector::Checklists::Base::CheckContext
Defined in:
lib/health_inspector/check.rb

Instance Method Summary collapse

Instance Method Details

#failure(message = nil) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/health_inspector/check.rb', line 8

def failure(message=nil)
  if message
    @failure = message
  else
    @failure
  end
end

#run_checkObject



3
4
5
6
# File 'lib/health_inspector/check.rb', line 3

def run_check
  check
  return failure
end