title: Run arbitrary ruby code in a chef cookbook
body: <p>I have a simple chef cookbook and all it does is it sets the MOTD on a CentOS machine. It takes the content of the /tmp/mymotd.txt and turns it into the MOTD.</p>
  
  <p>I also have a simple ruby script (a full-fledged ruby script) that simply reads the text from the web-server and puts in into the /tmp/mymotd.txt.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>how do I run this ruby script from within the cookbook?</li>
  <li>how do I pass some parameters to the script (e.g. the address of the web-server)</li>
  </ol>
  
  <p>Thanks a lot beforehand. </p>