title: Dynamic metadata according platform?
body: <p>Is it possible to detect the platform within the <code>metadata.rb</code> file of a Cookbook?</p>
  
  <p>For example, something like this:</p>
  
  <pre><code>if node['platform'] == 'aix'
     depends "cats", "&lt; 1.0"
  end
  
  if node['platform'] == 'ubuntu'
     depends "cats", "&gt; 1.0"
  end
  </code></pre>
  
  <p>But that is not possible since <code>node</code> is not available in that context. Is there any other way?</p>