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

Merge branch 'deploy-rsync' into panel.sutty.nl

This commit is contained in:
f 2022-04-06 20:45:20 -03:00
commit 2d0f0aabcd

View file

@ -9,11 +9,11 @@ class DeployRsync < Deploy
ssh? && rsync(output: output) ssh? && rsync(output: output)
end end
# No se ocupa espacio local # El espacio remoto es el mismo que el local
# #
# @return [Integer] # @return [Integer]
def size def size
0 deploy_local.build_stats.last.size
end end
# Devolver el destino o lanzar un error si no está configurado # Devolver el destino o lanzar un error si no está configurado
@ -95,6 +95,10 @@ class DeployRsync < Deploy
# #
# @return [String] # @return [String]
def source def source
site.deploys.find_by(type: 'DeployLocal').destination deploy_local.destination
end
def deploy_local
@deploy_local ||= site.deploys.find_by(type: 'DeployLocal')
end end
end end