5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 14:06:21 +00:00
This commit is contained in:
f 2022-04-06 17:00:17 -03:00
parent 1e6533b52c
commit 76e149b6fd

View file

@ -5,8 +5,8 @@
class DeployRsync < Deploy
store :values, accessors: %i[flags destination host_keys], coder: JSON
def deploy
ssh? && rsync
def deploy(output: false)
ssh? && rsync(output: output)
end
# No se ocupa espacio local
@ -68,8 +68,9 @@ class DeployRsync < Deploy
# Sincroniza hacia el directorio remoto, usando las flags opcionales.
#
# @return [Boolean]
def rsync
run %(rsync -av #{flags ? Shellwords.escape(flags) : ''} #{Shellwords.escape source}/ #{Shellwords.escape destination}/)
def rsync(output: false)
run %(rsync -av #{flags ? Shellwords.escape(flags) : ''} #{Shellwords.escape source}/ #{Shellwords.escape destination}/),
output: output
end
# El origen es el destino de la compilación