From ce5ae17af8665b18495d6fcb9dc949ae2d09631b Mon Sep 17 00:00:00 2001 From: Romain Y Brochard Date: Thu, 14 Nov 2019 17:58:42 +0100 Subject: [PATCH] Update README.md Update the default job types displayed on README.md as they are not representing what they really are anymore and can be confusing. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed210700..6a4b2e61 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,9 @@ The default job types that ship with Whenever are defined like so: ```ruby job_type :command, ":task :output" -job_type :rake, "cd :path && :environment_variable=:environment bundle exec rake :task --silent :output" -job_type :runner, "cd :path && bin/rails runner -e :environment ':task' :output" -job_type :script, "cd :path && :environment_variable=:environment bundle exec script/:task :output" +job_type :rake, "cd :path && :environment_variable=:environment :bundle_command rake :task --silent :output" +job_type :script, "cd :path && :environment_variable=:environment :bundle_command script/:task :output" +job_type :runner, "cd :path && :bundle_command :runner_command -e :environment ':task' :output" ``` Pre-Rails 3 apps and apps that don't use Bundler will redefine the `rake` and `runner` jobs respectively to function correctly.