<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
 tmp/*
+.rake_test_cache</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,91 +1,14 @@
+require 'rubygems'
+require 'chef'
+require 'json'
+
+load 'chef/tasks/chef_repo.rake'
+
 TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), &quot;..&quot;))
+TEST_CACHE = File.expand_path(File.join(TOPDIR, &quot;.rake_test_cache&quot;))
 COMPANY_NAME = &quot;Opscode, Inc.&quot;
 NEW_COOKBOOK_LICENSE = :apachev2
 
-desc &quot;Test the cookbooks for syntax errors&quot;
-task :test do
-  puts &quot;** Testing your cookbooks for syntax errors&quot;
-  Dir[ File.join(File.dirname(__FILE__), &quot;**&quot;, &quot;*.rb&quot;) ].each do |recipe|
-    print &quot;Testing recipe #{recipe}: &quot;
-    sh %{ruby -c #{recipe}} do |ok, res|
-      if ! ok
-        raise &quot;Syntax error in #{recipe}&quot;
-      end
-    end
-  end
-end
-
-desc &quot;Create a new cookbook (with COOKBOOK=name)&quot;
-task :new_cookbook do
-  create_cookbook(File.join(TOPDIR, &quot;cookbooks&quot;))
-  create_readme(File.join(TOPDIR, &quot;cookbooks&quot;))
-end
-
-def create_cookbook(dir)
-  raise &quot;Must provide a COOKBOOK=&quot; unless ENV[&quot;COOKBOOK&quot;]
-  puts &quot;** Creating cookbook #{ENV[&quot;COOKBOOK&quot;]}&quot;
-  sh &quot;mkdir -p #{File.join(dir, ENV[&quot;COOKBOOK&quot;], &quot;recipes&quot;)}&quot; 
-  unless File.exists?(File.join(dir, ENV[&quot;COOKBOOK&quot;], &quot;recipes&quot;, &quot;default.rb&quot;))
-    open(File.join(dir, ENV[&quot;COOKBOOK&quot;], &quot;recipes&quot;, &quot;default.rb&quot;), &quot;w&quot;) do |file|
-      file.puts &lt;&lt;-EOH
-#
-# Cookbook Name:: #{ENV[&quot;COOKBOOK&quot;]}
-# Recipe:: default
-#
-# Copyright #{Time.now.year}, #{COMPANY_NAME}
-#
-EOH
-      case NEW_COOKBOOK_LICENSE
-      when :apachev2
-        file.puts &lt;&lt;-EOH
-# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#     http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-EOH
-      when :none
-        file.puts &lt;&lt;-EOH
-# All rights reserved - Do Not Redistribute
-#
-EOH
-      end
-    end
-  end
-end
-
-def create_readme(dir)
-  raise &quot;Must provide a COOKBOOK=&quot; unless ENV[&quot;COOKBOOK&quot;]
-  puts &quot;** Creating README for cookbook: #{ENV[&quot;COOKBOOK&quot;]}&quot;
-  unless File.exists?(File.join(dir, ENV[&quot;COOKBOOK&quot;], &quot;README.rdoc&quot;))
-    open(File.join(dir, ENV[&quot;COOKBOOK&quot;], &quot;README.rdoc&quot;), &quot;w&quot;) do |file|
-      file.puts &lt;&lt;-EOH
-= DESCRIPTION:
-
-= REQUIREMENTS:
-
-== Platform:
-
-== Cookbooks:
-
-= ATTRIBUTES: 
-
-= USAGE:
-
-= LICENSE and AUTHOR:
-      
-EOH
-    end
-  end
-end
-
 task :default =&gt; [ :test ]
 
 desc &quot;Build a bootstrap.tar.gz&quot;
@@ -115,3 +38,8 @@ task :build_bootstrap do
     sh %{tar zcvf bootstrap.tar.gz cookbooks}
   end
 end
+
+# remove unnecessary tasks
+%w{update install roles ssl_cert metadata}.each do |t|
+  Rake.application.instance_variable_get('@tasks').delete(t.to_s)
+end</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>827b6445e79fb993bc8919b81aa729b601360ab4</id>
    </parent>
  </parents>
  <author>
    <name>jtimberman</name>
    <email>joshua@opscode.com</email>
  </author>
  <url>http://github.com/opscode/cookbooks/commit/fb58cccc4ebfcdc8b50cc3ce44dc9a65b08ef526</url>
  <id>fb58cccc4ebfcdc8b50cc3ce44dc9a65b08ef526</id>
  <committed-date>2009-06-30T00:15:38-07:00</committed-date>
  <authored-date>2009-06-30T00:15:38-07:00</authored-date>
  <message>cook-145, cleanup Rakefile, but remove tasks we won't need for cookbooks</message>
  <tree>5e8fda77e50c41df06bc72152bcf6cf09d122f6f</tree>
  <committer>
    <name>jtimberman</name>
    <email>joshua@opscode.com</email>
  </committer>
</commit>
