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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Running a Rake task without prereqs
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password