Rake and command line options

Discussion in 'Ruby' started by jim, Aug 19, 2004.

  1. jim

    jim Guest

    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, Aug 19, 2004
    #1
    1. Advertisements

  2. jim

    Jim Weirich Guest

    said:
    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, Aug 20, 2004
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.