title: Read text file from web and assign to variable in Ruby / Chef
body: <p>I'd like to read a text file from the web and assign it to a variable in chef / ruby</p>
  
  <p>In powershell I would do something like this:</p>
  
  <pre><code>$content = (Invoke-WebRequest http://website.com/string.txt).content
  </code></pre>
  
  <p>Can anyone tell me how this is done in ruby?</p>