Module: Healthy::Diagnostic::Base
- Defined in:
- lib/healthy/base.rb
Overview
all checks are expected to implement methods passed?, warning?, info all tools are expected to implement methods info
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
13 14 15 |
# File 'lib/healthy/base.rb', line 13 def name self.class.name end |
#status ⇒ Object
6 7 8 9 10 11 |
# File 'lib/healthy/base.rb', line 6 def status raise "status is not supported on a tool" unless respond_to?(:passed?) return :warn if warning? && passed? return :fail unless passed? return :pass end |