title: Chef guard multiple resources with single not_if
body: <p>When using chef, I only want to execute a sequence of resources if a certain condition is fulfilled. Currently, I have to add the <code>not_if</code> guard to each resource individually. Is there a way to wrap multiple resources inside with a single not_if guard like so:
  </p>
  
  <pre><code>wrap_resources do
    service 'my-service'
    package 'my-package'
    not_if certain_condition
  end
  </code></pre>
  
  <p>And I do not want to use that nasty notify!</p>