Class: StatusCheck::Runner
- Inherits:
-
Object
- Object
- StatusCheck::Runner
- Defined in:
- lib/status_check/runner.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
Instance Method Summary collapse
-
#initialize(checks) ⇒ Runner
constructor
A new instance of Runner.
- #verify ⇒ Object
Constructor Details
#initialize(checks) ⇒ Runner
Returns a new instance of Runner.
5 6 7 |
# File 'lib/status_check/runner.rb', line 5 def initialize(checks) @checks = checks end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
3 4 5 |
# File 'lib/status_check/runner.rb', line 3 def checks @checks end |
Instance Method Details
#verify ⇒ Object
9 10 11 12 |
# File 'lib/status_check/runner.rb', line 9 def verify services_status = collect_services_status report_status(services_status) end |