eliminar el zip antes de recrearlo

This commit is contained in:
f 2019-09-24 19:24:45 -03:00
parent 56c98eecfc
commit fc597a0570
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -16,6 +16,8 @@ class DeployZip < Deploy
#
# rubocop:disable Metrics/MethodLength
def deploy
FileUtils.rm_f path
time_start
Dir.chdir(destination) do
Zip::File.open(path, Zip::File::CREATE) do |z|
@ -33,7 +35,6 @@ class DeployZip < Deploy
File.exist? path
end
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/AbcSize
def limit
1