[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Running a Rake task without prereqs

S. Robert James

1/3/2007 1:48:00 AM

Any way to force a rake task to run but skip its prereqs? Sometimes you
need to do this.

--
Posted via http://www.ruby-....

3 Answers

Trans

1/3/2007 2:16:00 AM

0


Robert James wrote:
> Any way to force a rake task to run but skip its prereqs? Sometimes you
> need to do this.
>
> --
> Posted via http://www.ruby-....

Probably:

task :without do
meth()
end

task :with => [ preq ] do
meth()
end

def meth
# orig. task code
end

T.


S. Robert James

1/3/2007 2:21:00 AM

0

I mean preexisting tasks in Rakefiles.

Trans wrote:
> Probably:
>
> task :without do
> meth()
> end
>
> task :with => [ preq ] do
> meth()
> end
>
> def meth
> # orig. task code
> end

--
Posted via http://www.ruby-....

Trans

1/3/2007 4:14:00 AM

0


Robert James wrote:
> I mean preexisting tasks in Rakefiles.

That's liable to be "dangerous". So it's probably not possible.

T.