sous-chefs / ark

Development repository for the ark cookbook
https://supermarket.chef.io/cookbooks/ark
Apache License 2.0
99 stars 181 forks source link

Allow deleting target directory before extraction #107

Open carguel opened 9 years ago

carguel commented 9 years ago

When a new version of an archive is extracted, the directory where the previous version is currently installed is not deleted first. Consequently, if some files or directories do not exist anymore in the new archive version, they are still present in the target directory after extraction.Thus, the content of the target directory could not strictly reflect the content of the updated archive.

This issue could be solved by supporting a new boolean attribute (at cookbook level or resource level). When enabled, this attribute would trigger the deletion of the target directory before to perform the extraction.

scalp42 commented 9 years ago

@burtlo any chance to look at this please?