Skip to content

Commit 53329ba

Browse files
authored
Merge pull request #789 from neolyte/patch-1
Update README.md
2 parents 51e617d + ce5ae17 commit 53329ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ The default job types that ship with Whenever are defined like so:
106106

107107
```ruby
108108
job_type :command, ":task :output"
109-
job_type :rake, "cd :path && :environment_variable=:environment bundle exec rake :task --silent :output"
110-
job_type :runner, "cd :path && bin/rails runner -e :environment ':task' :output"
111-
job_type :script, "cd :path && :environment_variable=:environment bundle exec script/:task :output"
109+
job_type :rake, "cd :path && :environment_variable=:environment :bundle_command rake :task --silent :output"
110+
job_type :script, "cd :path && :environment_variable=:environment :bundle_command script/:task :output"
111+
job_type :runner, "cd :path && :bundle_command :runner_command -e :environment ':task' :output"
112112
```
113113

114114
Pre-Rails 3 apps and apps that don't use Bundler will redefine the `rake` and `runner` jobs respectively to function correctly.

0 commit comments

Comments
 (0)