mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 23:31:42 +00:00
el espacio ocupado es el mismo que el local
This commit is contained in:
parent
8c9bd6aa88
commit
35e41b729a
1 changed files with 7 additions and 3 deletions
|
@ -9,11 +9,11 @@ class DeployRsync < Deploy
|
|||
ssh? && rsync
|
||||
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
|
||||
|
@ -91,6 +91,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