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
···
--
Jim Freeze
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
--
Jim Freeze
jim@freeze.org 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.
--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)