From 6305ab0d8ee58b2ca1fa2354420ee3699d7477eb Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Wed, 23 Mar 2011 22:03:43 -0400 Subject: [PATCH] removed -i from default job_template --- lib/whenever/setup.rb | 2 +- test/functional/output_default_defined_jobs_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/whenever/setup.rb b/lib/whenever/setup.rb index f0b9e64..64e6f33 100644 --- a/lib/whenever/setup.rb +++ b/lib/whenever/setup.rb @@ -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 -i -l -c ':job'" +set :job_template, "/bin/bash -l -c ':job'" job_type :command, ":task :output" job_type :rake, "cd :path && RAILS_ENV=:environment rake :task --silent :output" diff --git a/test/functional/output_default_defined_jobs_test.rb b/test/functional/output_default_defined_jobs_test.rb index fd28c8a..6dd389d 100644 --- a/test/functional/output_default_defined_jobs_test.rb +++ b/test/functional/output_default_defined_jobs_test.rb @@ -31,7 +31,7 @@ class OutputDefaultDefinedJobsTest < Test::Unit::TestCase end should "output the command with the default job template" do - assert_match /^.+ .+ .+ .+ \/bin\/bash -i -l -c 'blahblah'$/, @output + assert_match /^.+ .+ .+ .+ \/bin\/bash -l -c 'blahblah'$/, @output end end