Forum: Ruby how to convert an array into a recursively calling string

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
74b12171278329601699336d0236b099?d=identicon&s=25 Wrapster Aol (wrapster)
on 2008-10-03 17:21
Attachment: testyaml.yaml (386 Bytes)
Hi all,

I am stuck with an issue of converting a set of values present in the
yaml file that i've pushed into an array to a recursively calling
command.
I have attached the yaml file .
This is how the o/p should be

<cmd> -l vnic1 -L=active -P=L2,L4 -l vnic2 -L=active -P=L3,L4 confivnic

"similarly the process continues with initiation of another command for
notsoconfi"

I tried with everything i knew and all i could get to do was either
<cmd> -l vnic1 vnic2 ......    (notice -l missing)
or
   <cmd> -l vnic1 <cmd> -l vnic2 ...... (here the basic syntax turns out
to be wrong)

I have been asking this on irb but since am new to ruby and yaml. I was
not able to get a clear picture .
pls help

thanks
This topic is locked and can not be replied to.