caterer 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,8 @@ module Caterer
10
10
 
11
11
  def chef_solo
12
12
  @keys[:chef_solo] ||= Config::Provisioner::ChefSolo.new
13
+ yield @keys[:chef_solo] if block_given?
14
+ @keys[:chef_solo]
13
15
  end
14
16
 
15
17
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Caterer
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: