<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,6 +72,10 @@ module PoolParty
       @cookbook_repos ||= File.expand_path(dir)
     end
     
+    def chef_repo(filepath=nil)
+      @chef_repo ||= File.expand_path(filepath)
+    end
+    
     def recipe(recipe_path, hsh={})
       fpath = File.expand_path(cookbook_repos/recipe_path)
       if File.directory?(fpath)
@@ -237,11 +241,17 @@ module PoolParty
     def resolve_for_clouds
       base_directory = tmp_path/&quot;etc&quot;/&quot;#{dependency_resolver_name}&quot;
       cookbook_directory = base_directory/&quot;cookbooks&quot;
-      ddputs &quot;Copying the cookbooks into the base directory: #{cookbook_directory}&quot;
+      
+      vputs &quot;Copying the chef-repo into the base directory: #{cookbook_directory}&quot;
+      FileUtils.cp_r chef_repo, cookbook_directory if File.directory?(chef_repo)
+      
+      vputs &quot;Copying the cookbooks into the base directory: #{cookbook_directory}&quot;
       _recipes.each do |r|
-        FileUtils.cp_r r, cookbook_directory/&quot;#{File.basename(r)}&quot;
+        d = cookbook_directory/&quot;#{File.basename(r)}&quot;
+        FileUtils.rm_r d if File.directory?(d)
+        FileUtils.cp_r r, d
       end
-      ddputs &quot;Creating the dna.json&quot;
+      vputs &quot;Creating the dna.json&quot;
       chef_attributes.to_dna _recipes.map {|a| File.basename(a) }, base_directory/&quot;dna.json&quot;
     end
     </diff>
      <filename>lib/poolparty/cloud.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>bin/cloud-osxcopy</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>b357bcccaba9f0897e546623325652097c827314</id>
    </parent>
  </parents>
  <author>
    <name>Ari Lerner</name>
    <email>arilerner@mac.com</email>
  </author>
  <url>http://github.com/jashmenn/poolparty/commit/a6768d8418b4ef29b8f4ea617ae94adec543aadd</url>
  <id>a6768d8418b4ef29b8f4ea617ae94adec543aadd</id>
  <committed-date>2009-09-28T19:51:42-07:00</committed-date>
  <authored-date>2009-09-28T19:51:42-07:00</authored-date>
  <message>Added chef_repo directive to push up the entire chef_repo path</message>
  <tree>e13dc5ac137b4b7d8e2d64e7598a2b69190941bd</tree>
  <committer>
    <name>Ari Lerner</name>
    <email>arilerner@mac.com</email>
  </committer>
</commit>
