title: Reading in variables from a file in Ruby
body: <p>Is there a way to read in a file of environment variables? </p>
  
  <p>In bash I have a file env.sh that I can use</p>
  
  <p>env.sh</p>
  
  <pre><code>foo="bar"
  </code></pre>
  
  <p>bash file</p>
  
  <pre><code>set -a
  source env.sh
  </code></pre>
  
  <p>This would allow me to just use foo as if I had delcared it in the ruby script.</p>
  
  <p>Also is it there a way to make sure that this file is unreadable so that passwords could be stored in this file?</p>