Advice in rake

P

peter.meier998

Hi,

I'm using rake to build a project and during this build process to
call some scripts as well.
The problem is now, that the number of required script runs is unknown
to rake prior to starting rake,
but can be determined after running the script once. So I'd like to
use the output of the first runto optionally call
the task again. What is the best way doing this?

Alternatively I could give a command line option to rake telling it
how often to run the task. I had the idea
of putting the number of runs behind the task name, like "run2",
"run1",...
This will require a dynamic detection in the rake file to separate the
actual task name "task" from the number of calls.
Is this possible?

I tried to call the task multiple times in the command line, "rake
task task task", but this executes it only once.

Thanks
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top