5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 16:36: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)
end
# No se ocupa espacio local
# El espacio remoto es el mismo que el local
#
# @return [Integer]
def size
0
deploy_local.build_stats.last.size
end
# Devolver el destino o lanzar un error si no está configurado
@ -95,6 +95,10 @@ class DeployRsync < Deploy
#
# @return [String]
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