Alle marted13 marzo 2007, Rebhan, Gilbert ha scritto:
> the shell disappears right after the input of the password, without any
> further (error)message.
> Hm, any ideas what's wrong ? I thought YAML would be the recommended way
> for
> configfiles in ruby.
>
> Or a simple alternative to yaml ?

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
...
}

Trying to access CVSEXE, which ruby thinks is a constant, without having 
defined it, should rise a NameError exception, so I can't understand why you 
don't get an error message.

I hope this helps

Stefano