Class: OkComputer::OptionalCheck
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- OkComputer::OptionalCheck
- Defined in:
- lib/ok_computer/built_in_checks/optional_check.rb
Overview
This check wraps another check and forces it to be successful so as to avoid triggering alerts.
Instance Method Summary collapse
-
#success? ⇒ Boolean
Public: Always successful.
-
#to_text ⇒ Object
Public: The text output of performing the check.
Instance Method Details
#success? ⇒ Boolean
Public: Always successful
8 9 10 |
# File 'lib/ok_computer/built_in_checks/optional_check.rb', line 8 def success? true end |
#to_text ⇒ Object
Public: The text output of performing the check
Returns a String
15 16 17 |
# File 'lib/ok_computer/built_in_checks/optional_check.rb', line 15 def to_text "#{__getobj__.to_text} (OPTIONAL)" end |