class Object

Public Instance Methods

runner_for_app() click to toggle source

Create a runner job that's appropriate for the Rails version

# File lib/whenever/setup.rb, line 24
def runner_for_app
  case
  when Whenever.bin_rails?
    "bin/rails runner"
  when Whenever.script_rails?
    "script/rails runner"
  else
    "script/runner"
  end
end