Sorry...I hit the submit button before pasting the actual error message.
recordcentercrawler/rccrawler.rb:30: undefined method `webServers' for
#<Array:0
x2dbc868> (NoMethodError)
Any help would be highly appreciated.
Thanks
Pugal
Pugal P wrote:
···
Hello,
I am a newbie to Ruby. I am having trouble reading the entries from
nested yaml configuration file. Any help would be highly appreciated.
YAML configuration file:
---
AppName: Record Center
DEV:
- user: test
webServers:
webserver1: wserver1
webserver2: wserver2
appServers:
appserver1: aserver3
appserver2: aserver4
password: blah
QA:
- user: test
webServers:
webserver1: wserver11
webserver2: wserver22
appServers:
appserver1: aserver33
appserver2: aserver44
password: blah
At Mon, 2 Apr 2007 09:58:45 +0900,
Pugal Panneerselvam wrote in [ruby-talk:246323]:
Sorry...I hit the submit button before pasting the actual error message.
recordcentercrawler/rccrawler.rb:30: undefined method `webServers' for
#<Array:0 x2dbc868> (NoMethodError)