diff options
author | Vasiliy Tolstov <v.tolstov@selfip.ru> | 2014-11-11 22:10:54 +0300 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-13 12:39:14 -0800 |
commit | e6d0a0ea72bc982ac294d64764efa4f1d6da0e66 (patch) | |
tree | c51727d76d6a3dcc8ee90a6e5f8baba0343a3c85 /lib/chef/application | |
parent | d80796160625016889ded0ce42fec3ea9945e39e (diff) | |
download | chef-e6d0a0ea72bc982ac294d64764efa4f1d6da0e66.tar.gz |
cleanup cookbook path from stale files
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Diffstat (limited to 'lib/chef/application')
-rw-r--r-- | lib/chef/application/solo.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb index 474bbf3f6c..c99170f437 100644 --- a/lib/chef/application/solo.rb +++ b/lib/chef/application/solo.rb @@ -191,6 +191,8 @@ class Chef::Application::Solo < Chef::Application cookbooks_path = Array(Chef::Config[:cookbook_path]).detect{|e| e =~ /\/cookbooks\/*$/ } recipes_path = File.expand_path(File.join(cookbooks_path, '..')) + Chef::Log.debug "Cleanup path #{recipes_path} before extract recipes into it" + FileUtils.rm_rf(recipes_path, :secure => true) Chef::Log.debug "Creating path #{recipes_path} to extract recipes into" FileUtils.mkdir_p(recipes_path) tarball_path = File.join(recipes_path, 'recipes.tgz') |