Class: RunningStation::RunnersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RunningStation::RunnersController
- Defined in:
- app/controllers/running_station/runners_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 |
# File 'app/controllers/running_station/runners_controller.rb', line 9 def show @runner = Runner.new(runner_params) end |
#update ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/running_station/runners_controller.rb', line 13 def update @runner = Runner.new(runner_params) @stdout, @stderr, @status = Open3.capture3(*["bin/rails", "runner", "#{@runner.full_path}"]) render :show end |