mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 09:46:23 +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
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue