5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-02 07:56:07 +00:00

deprecar las flags por ahora

This commit is contained in:
f 2022-04-06 18:27:52 -03:00
parent 5fac827ca0
commit 20915443d8

View file

@ -3,7 +3,7 @@
# Sincroniza sitios a servidores remotos usando Rsync. El servidor
# remoto tiene que tener rsync instalado.
class DeployRsync < Deploy
store :values, accessors: %i[flags destination host_keys], coder: JSON
store :values, accessors: %i[destination host_keys], coder: JSON
def deploy
ssh? && rsync
@ -80,11 +80,11 @@ class DeployRsync < Deploy
end
end
# Sincroniza hacia el directorio remoto, usando las flags opcionales.
# Sincroniza hacia el directorio remoto
#
# @return [Boolean]
def rsync
run %(rsync -avi --timeout=5 #{flags ? Shellwords.escape(flags) : ''} #{Shellwords.escape source}/ #{Shellwords.escape destination}/)
run %(rsync -avi --timeout=5 #{Shellwords.escape source}/ #{Shellwords.escape destination}/)
end
# El origen es el destino de la compilación