<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 29 April 2014 08:25, MG Lim <span dir="ltr"><<a href="mailto:mirageglobe@gmail.com" target="_blank">mirageglobe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>I am building an automated bash script in ruby. Just wondering if anyone has pointers for using either json or yaml as store for this.</div><div><br></div><div>for example....</div>
<div><br></div><div>yaml</div><div><br></div><div>list:</div><div>  script a: </div><div>    - clear</div><div><br></div><div>or </div><div>json</div><div><br></div><div>{</div><div>  "script": "clear"</div>


<div>} </div><div><div><br></div><div>Contents are all bash scripts with labels. My key concern is if there are issues in interpretation when its parsed.</div></div></blockquote></div><br>It appears like you are building script runner which uses a hash for the execution information, with the scripts to be executed as the keys and the values/options being passed to the script as values or nested arrays of values. I wouldn't see any major issues with using JSON or YAML as the storage format, however there may be requirements for this runner which haven't been detailed yet.</div>

</div>