add -i to the bash job template

This commit is contained in:
Javan Makhmali 2011-03-06 16:17:36 -05:00
parent 006a1d963b
commit 4b98f064eb
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ set :path, Whenever.path
# All jobs are wrapped in this template.
# http://blog.scoutapp.com/articles/2010/09/07/rvm-and-cron-in-production
set :job_template, "/bin/bash -l -c ':job'"
set :job_template, "/bin/bash -i -l -c ':job'"
job_type :command, ":task :output"
job_type :rake, "cd :path && RAILS_ENV=:environment rake :task --silent :output"

View File

@ -31,7 +31,7 @@ class OutputDefaultDefinedJobsTest < Test::Unit::TestCase
end
should "output the command with the default job template" do
assert_match /^.+ .+ .+ .+ \/bin\/bash -l -c 'blahblah'$/, @output
assert_match /^.+ .+ .+ .+ \/bin\/bash -i -l -c 'blahblah'$/, @output
end
end