Rake and command line options

J

jim

How does one pass options to rake?
E.g.:

rake prefix=new_path

Is this correct?
If so, how is this used inside the rake file?

Thanks
 
J

Jim Weirich

(e-mail address removed) said:
How does one pass options to rake?
E.g.:

rake prefix=new_path

Is this correct?
If so, how is this used inside the rake file?

Inside the rake file, use: ENV['prefix']

It treats it like an environment variable so that you can put it in the
environment or pass it in explicitly.
 

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,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top