title: Print vars with Test Kitchen - Chef
body: <p>I'm working with Chef and Test Kitchen, I have some problems installing Apache 2.2 and I was reading the cookbook with my recipe (<a href="https://github.com/sous-chefs/apache2/blob/master/recipes/default.rb" rel="nofollow noreferrer">https://github.com/sous-chefs/apache2/blob/master/recipes/default.rb</a>), I would like to know how this recipe is working when installed Apache and I want print some variables when I launch my recipe: </p>
  
  <pre><code>node['platform_family']
  node['platform_version']
  </code></pre>
  
  <p>An example from Chef official doc:</p>
  
  <pre><code>Chef::Log.fatal('You did not accept the license (set node["splunk"]["accept_license"] to true)')
  </code></pre>
  
  <p>But I write in my recipe: </p>
  
  <pre><code>Chef::Log.info('PERSONAL-LOG,node["platform_family"]')
  </code></pre>
  
  <p>I get the log, but exactly with the same text I write, I cant concatenate or call the var directly. </p>
  
  <p>Can someone help me?</p>