this is a known bug in cruise, if you grab the latest from head, it should be fixed.&nbsp; it will also be fixed in the next release if you&#39;d like to wait<br><br><div><span class="gmail_quote">On 5/23/07, <b class="gmail_sendername">
Christos Zisopoulos</b> &lt;<a href="mailto:christos@42linesofcode.com">christos@42linesofcode.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>When using a custom rake_task or when defining the default &#39;cruise&#39;<br>task in my Rakefile I get into a peculiar situation. The rake task<br>runs in the &#39;test&#39; environment which I define for most of the part,
<br>but not always...<br><br>If I have a task that depends on &quot;test:db:prepare&quot; then for some<br>weird reason the test:db:prepare&quot; is executed in &#39;production&#39; or<br>whatever environment cruisecontroll is running in. I think I traced
<br>it down to the fact that at the end &quot;test:db:prepare&quot; depends on the<br>default :environment Rake task which reads:<br><br>task :environment do<br>&nbsp;&nbsp; require(File.join(RAILS_ROOT, &#39;config&#39;, &#39;environment&#39;))
<br>end<br><br>This is what my custom task looks like<br><br>task :cruise =&gt; &quot;test:db:prepare&quot;<br>&nbsp;&nbsp; # Do whatever here should first invoke test:db:prepare<br>end<br><br>Any ideas what might be the problem?<br>
<br>Cheers!<br>-christos<br>_______________________________________________<br>Cruisecontrolrb-users mailing list<br><a href="mailto:Cruisecontrolrb-users@rubyforge.org">Cruisecontrolrb-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users">
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users</a><br></blockquote></div><br>