mofa 0.3.28 → 0.3.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/released_cookbook.rb +2 -2
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
@@ -97,8 +97,8 @@ class ReleasedCookbook < Cookbook
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def recipes
|
100
|
-
raise 'Cookbook not unpacked yet or no recipes found.' unless (Dir.exists?("#{pkg_dir}/
|
101
|
-
recipes = Dir.entries("#{pkg_dir}/
|
100
|
+
raise 'Cookbook not unpacked yet or no recipes found.' unless (Dir.exists?("#{pkg_dir}/recipes"))
|
101
|
+
recipes = Dir.entries("#{pkg_dir}/recipes").select { |f| f.match(/.rb$/) }
|
102
102
|
recipes.map! { |f| f.gsub(/\.rb/, '') }
|
103
103
|
end
|
104
104
|
|
data/lib/mofa/version.rb
CHANGED