[Rake-devel] redefine rake task broken in 0.8.x for a rails app

Assaf Arkin assaf at labnotes.org
Thu Jan 3 02:53:01 EST 2008


On Jan 2, 2008 10:03 PM, Charlie Savage <cfis at savagexi.com> wrote:
> >
> > Are you trying to ...
> >
> > (1) Clear existing prerequisites and actions and introduce new ones, or
>
> That is what we do.  Rails provides tasks to run tests, which include
> prerequisites that rebuild the appropriate database.  However, we have
> our own code to do that since what we do is a bit specialized.  Thus we
> have to remove the prerequisites Rails uses and slot in our own.  We do
> that by using redefine task.

task('foo').prerequisites.clear

-- Assaf
http://labnotes.org

>
> Charlie
>
> _______________________________________________
> Rake-devel mailing list
> Rake-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rake-devel
>


More information about the Rake-devel mailing list