Class: OkComputer::OptionalCheck

Inherits:
SimpleDelegator
  • Object
show all
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

Instance Method Details

#success?Boolean

Public: Always successful

Returns:

  • (Boolean)


8
9
10
# File 'lib/ok_computer/built_in_checks/optional_check.rb', line 8

def success?
  true
end

#to_textObject

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