title: initialize chef attribute with ruby block?
body: <p>Here's the ruby command I'd like to save the output of <code>Time.now.strftime('%m%d%Y_%H%M')</code> I was thinking I could just add something like this to my recipe '</p>
  
  <pre><code>TODAY={ ::Time.now.strftime('%m%d%Y_%H%M') }
  </code></pre>
  
  <p>but this doesn't seem to work</p>
  
  <pre><code>==&gt; default: [2015-04-10T17:53:44+00:00] ERROR: /tmp/vagrant-chef/eb36617d9c55f20fcee6cd316a379482/cookbooks/test-cookbook/recipes/install_app.rb:12: syntax error, unexpected '}', expecting tASSOC
      ==&gt; default: TODAY={ (Time.now.strftime('%m%d%Y_%H%M')) }
      ==&gt; default:                                             ^
      ==&gt; default: [2015-04-10T17:53:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  </code></pre>
  
  <p>eventually I want to make this an attribute so I can access it from multiple recipes</p>
  
  <pre><code>default['neustar-npac-deployment']['node_ohai_time'] = TODAY={ ::Time.now.strftime('%m%d%Y_%H%M') }
  </code></pre>
  
  <p>thanks!</p>