mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 16:46:22 +00:00
Merge branch 'deploy-rsync' into panel.sutty.nl
This commit is contained in:
commit
2d0f0aabcd
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue