Jano Svitok
8/14/2006 4:08:00 PM
On 8/14/06, Cameron, Gemma (UK) <gemma.cameron@baesystems.com> wrote:
>
> Hi all!
>
> I'm another Ruby noob and wondered if any of you can help me with my problem.
>
> I've have been tasked with writing some rake files to automate parts of our project and to begin I'm trying to automate the setup of the build machine. The first task is to set the environment variables.
>
> Can this be done in Ruby without using system("%PATH% = %PATH%;c:\ruby\bin") etc.?
>
> Thanks in advance!!!! ( :
ENV['PATH'] += "c:\ruby\bin"
will be vaild only in processes that you'll start from your script, in
other words, you cannot modify parent environment. (you could do by
some batch file wizardry)
J.