diff --git a/app/models/deploy_zip.rb b/app/models/deploy_zip.rb index 4671727..7ea9682 100644 --- a/app/models/deploy_zip.rb +++ b/app/models/deploy_zip.rb @@ -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