title: Chef 13 syntax changes
body: <p>Trying to upgrade chef client from version 12 to 13 I'm facing some issues mostly related to syntax changes</p>
  
  <pre><code>node['java']['webapps'].each do |object|
          name = object[0]
          attributes = object[1]
            if attributes.attribute?('enabled')
                  if attributes.enabled
                          if attributes.attribute?('x')
                                  if attributes.x.attribute?('conf')
                                          attributes.x.conf.each do |conf_file|
                                                  template "#{x_conf_dir}/#{conf_file}" do
                                                    source "#{conf_file}.erb"
                                                    mode '0755'
                                                    owner 'tomcat'
                                                    group 'tomcat'
                                                  end
                                          end
                                  end
                          end
                  end
          end
  end
  </code></pre>
  
  <p>Chef client errors out on "if attributes.enabled" which on version 12 worked fine (it should continue if the enabled=true in the array)</p>
  
  <p>now i'm hitting  "undefined method 'enabled'"</p>
  
  <p>What is the correct syntax for checking the value in the array ? </p>