Class: RunningStation::RunnersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/running_station/runners_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



9
10
11
# File 'app/controllers/running_station/runners_controller.rb', line 9

def show
  @runner = Runner.new(runner_params)
end

#updateObject



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