mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 15:56:20 +00:00
eliminar el zip antes de recrearlo
This commit is contained in:
parent
56c98eecfc
commit
fc597a0570
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue