[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: YAML.load_file problems
From:       "Rebhan, Gilbert" <Gilbert.Rebhan () huk-coburg ! de>
Date:       2007-03-13 10:58:54
Message-ID: 3AE93DC078AE8A41AEDA6B95DE4EB92D25BABC () VEX00130 ! lan ! huk-coburg ! de
[Download RAW message or body]


Hi Stefano,

-----Original Message-----
From: Stefano Crocco [mailto:stefano.crocco@alice.it] 
Sent: Tuesday, March 13, 2007 9:31 AM
To: ruby-talk ML
Subject: Re: YAML.load_file problems

/*

YAML.load_file returns the contents of the yaml file in a hash or an
array 
(depending on the contents of the file, in your case is a hash). You
need to 
store the result somewhere, like this:

config=YAML.load_file('config.yaml)
...
config['cvsrepos'].each{ |x|
...
IO.popen("#{config['CVSEXE']} -d
...
}

*/

works fine :-)
thanks

Regards, Gilbert


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic