Update poise-archive and poise-service cookbooks

This commit is contained in:
Greg Karékinian
2018-04-17 12:24:17 +02:00
parent 90bb872305
commit ff2f424ddb
16 changed files with 150 additions and 47 deletions

View File

@@ -112,12 +112,7 @@ module PoiseArchive
def move_files(tmpdir)
entries_at_depth(tmpdir, new_resource.strip_components).each do |source|
target = ::File.join(new_resource.destination, ::File.basename(source))
# If we are in keep_existing mode, the target might exist already.
# This is not a great solution and won't have exactly the same behavior
# as the other providers, but it's something at least.
FileUtils.rm_rf(target) if ::File.exist?(target)
# At some point this might need to fall back to a real copy.
::File.rename(source, target)
FileUtils.mv(source, target, secure: true)
end
end

View File

@@ -16,5 +16,5 @@
module PoiseArchive
VERSION = '1.4.0'
VERSION = '1.5.0'
end