caterer 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -279,7 +279,7 @@ module Caterer
|
|
|
279
279
|
def final_cookbook_paths
|
|
280
280
|
cookbooks_path.inject([]) do |res, path|
|
|
281
281
|
# make sure they actually contain recipes, otherwise chef-solo will freak
|
|
282
|
-
if Dir.entries(path).length > 2
|
|
282
|
+
if File.exists?(path) and Dir.entries(path).length > 2
|
|
283
283
|
res << "#{target_cookbooks_path}/#{Digest::MD5.hexdigest(path)}"
|
|
284
284
|
end
|
|
285
285
|
res
|
data/lib/caterer/version.rb
CHANGED