mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:56:21 +00:00
output
This commit is contained in:
parent
1e6533b52c
commit
76e149b6fd
1 changed files with 5 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
||||||
class DeployRsync < Deploy
|
class DeployRsync < Deploy
|
||||||
store :values, accessors: %i[flags destination host_keys], coder: JSON
|
store :values, accessors: %i[flags destination host_keys], coder: JSON
|
||||||
|
|
||||||
def deploy
|
def deploy(output: false)
|
||||||
ssh? && rsync
|
ssh? && rsync(output: output)
|
||||||
end
|
end
|
||||||
|
|
||||||
# No se ocupa espacio local
|
# No se ocupa espacio local
|
||||||
|
@ -68,8 +68,9 @@ class DeployRsync < Deploy
|
||||||
# Sincroniza hacia el directorio remoto, usando las flags opcionales.
|
# Sincroniza hacia el directorio remoto, usando las flags opcionales.
|
||||||
#
|
#
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
def rsync
|
def rsync(output: false)
|
||||||
run %(rsync -av #{flags ? Shellwords.escape(flags) : ''} #{Shellwords.escape source}/ #{Shellwords.escape destination}/)
|
run %(rsync -av #{flags ? Shellwords.escape(flags) : ''} #{Shellwords.escape source}/ #{Shellwords.escape destination}/),
|
||||||
|
output: output
|
||||||
end
|
end
|
||||||
|
|
||||||
# El origen es el destino de la compilación
|
# El origen es el destino de la compilación
|
||||||
|
|
Loading…
Reference in a new issue