drop /usr/bin/env from rake job - let PATH do the work. added --silent flag to rake job tosupress the 'in directory' message.
This commit is contained in:
parent
3ad1e30561
commit
e7e4a37b3a
@ -1,3 +1,3 @@
|
|||||||
job_type :command, ":task"
|
job_type :command, ":task"
|
||||||
job_type :runner, "cd :path && script/runner -e :environment ':task'"
|
job_type :runner, "cd :path && script/runner -e :environment ':task'"
|
||||||
job_type :rake, "cd :path && RAILS_ENV=:environment /usr/bin/env rake :task"
|
job_type :rake, "cd :path && RAILS_ENV=:environment rake :task --silent"
|
||||||
|
@ -107,7 +107,7 @@ class OutputAtTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "output the rake task using one entry because the times are aligned" do
|
should "output the rake task using one entry because the times are aligned" do
|
||||||
assert_match '2 5,15 * * 1,3,5 cd /your/path && RAILS_ENV=production /usr/bin/env rake blah:blah', @output
|
assert_match '2 5,15 * * 1,3,5 cd /your/path && RAILS_ENV=production rake blah:blah --silent', @output
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ class OutputAtTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "output all of the commands @daily" do
|
should "output all of the commands @daily" do
|
||||||
assert_match '@daily cd /your/path && RAILS_ENV=production /usr/bin/env rake blah:blah', @output
|
assert_match '@daily cd /your/path && RAILS_ENV=production rake blah:blah --silent', @output
|
||||||
assert_match %(@daily cd /your/path && script/runner -e production 'runner_1'), @output
|
assert_match %(@daily cd /your/path && script/runner -e production 'runner_1'), @output
|
||||||
assert_match '@daily command_1', @output
|
assert_match '@daily command_1', @output
|
||||||
assert_match %(@daily cd /your/path && script/runner -e production 'runner_2'), @output
|
assert_match %(@daily cd /your/path && script/runner -e production 'runner_2'), @output
|
||||||
|
@ -67,7 +67,7 @@ class OutputDefaultDefinedJobsTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "output the rake command using that path" do
|
should "output the rake command using that path" do
|
||||||
assert_match two_hours + ' cd /my/path && RAILS_ENV=production /usr/bin/env rake blahblah', @output
|
assert_match two_hours + ' cd /my/path && RAILS_ENV=production rake blahblah --silent', @output
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ class OutputDefaultDefinedJobsTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "output the rake command using that path" do
|
should "output the rake command using that path" do
|
||||||
assert_match two_hours + ' cd /some/other/path && RAILS_ENV=production /usr/bin/env rake blahblah', @output
|
assert_match two_hours + ' cd /some/other/path && RAILS_ENV=production rake blahblah --silent', @output
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user