Class: OkComputer::OkComputerController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- OkComputer::OkComputerController
- Includes:
- NewRelic::Agent::Instrumentation::ControllerInstrumentation
- Defined in:
- app/controllers/ok_computer/ok_computer_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
19 20 21 22 23 24 |
# File 'app/controllers/ok_computer/ok_computer_controller.rb', line 19 def index checks = OkComputer::Registry.all checks.run respond checks, status_code(checks) end |
#show ⇒ Object
26 27 28 29 30 31 |
# File 'app/controllers/ok_computer/ok_computer_controller.rb', line 26 def show check = OkComputer::Registry.fetch(params[:check]) check.run respond check, status_code(check) end |