lib/engineyard-recipes/generators/base_generator.rb in engineyard-recipes-0.3.0 vs lib/engineyard-recipes/generators/base_generator.rb in engineyard-recipes-0.3.2.pre

- old
+ new

@@ -9,10 +9,10 @@ def cookbooks_destination @cookbooks_destination ||= begin return "." if self.respond_to?(:flags) && flags[:local] # check for bonus --local flag in CLI possible_paths = ['deploy/cookbooks', 'cookbooks'] destination = possible_paths.find do |cookbooks| - Dir.exist?(File.join(destination_root, cookbooks)) + File.directory?(File.join(destination_root, cookbooks)) end unless destination error "Cannot discover cookbooks folder" end destination \ No newline at end of file