    # File lib/chef/cookbook_uploader.rb, line 151
        def validate_cookbooks
          cookbooks.each do |cb|
            syntax_checker = Chef::Cookbook::SyntaxCheck.for_cookbook(cb.name, @user_cookbook_path)
            Chef::Log.info("Validating ruby files")
            exit(1) unless syntax_checker.validate_ruby_files
            Chef::Log.info("Validating templates")
            exit(1) unless syntax_checker.validate_templates
            Chef::Log.info("Syntax OK")
            true
          end
        end