mofa 0.3.27 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/released_cookbook.rb +7 -2
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
@@ -53,8 +53,13 @@ class ReleasedCookbook < Cookbook
|
|
53
53
|
run "tar x#{tar_verbose}fz #{pkg_dir}/#{pkg_name} -C #{pkg_dir}/tmp/"
|
54
54
|
|
55
55
|
# copy out data_bags if exists
|
56
|
-
if File.directory?("#{pkg_dir}/tmp/#{name}/data_bags")
|
57
|
-
FileUtils.cp_r "#{pkg_dir}/tmp/#{name}/data_bags", pkg_dir
|
56
|
+
if File.directory?("#{pkg_dir}/tmp/cookbooks/#{name}/data_bags")
|
57
|
+
FileUtils.cp_r "#{pkg_dir}/tmp/cookbooks/#{name}/data_bags", pkg_dir
|
58
|
+
end
|
59
|
+
|
60
|
+
# copy out recipes
|
61
|
+
if File.directory?("#{pkg_dir}/tmp/cookbooks/#{name}/recipes")
|
62
|
+
FileUtils.cp_r "#{pkg_dir}/tmp/cookbooks/#{name}/recipes", pkg_dir
|
58
63
|
end
|
59
64
|
|
60
65
|
run "cd #{pkg_dir}/tmp/;tar c#{tar_verbose}fz #{pkg_dir}/#{pkg_name}.new ."
|
data/lib/mofa/version.rb
CHANGED