mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 01:16: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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue