5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 00:56:21 +00:00

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