    # File lib/chef/cookbook_uploader.rb, line 143
        def validate_cookbook
          syntax_checker = Chef::Cookbook::SyntaxCheck.for_cookbook(cookbook.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