mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 08:31:41 +00:00
fix: implementar output
This commit is contained in:
parent
77304d3de9
commit
b590396a6b
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Reindexa los artículos al terminar la compilación
|
||||
class DeployReindex < Deploy
|
||||
def deploy
|
||||
def deploy(**)
|
||||
time_start
|
||||
|
||||
site.reset
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
class DeployRsync < Deploy
|
||||
store :values, accessors: %i[destination host_keys], coder: JSON
|
||||
|
||||
def deploy
|
||||
ssh? && rsync
|
||||
def deploy(output: false)
|
||||
ssh? && rsync(output: output)
|
||||
end
|
||||
|
||||
# El espacio remoto es el mismo que el local
|
||||
|
@ -83,8 +83,8 @@ class DeployRsync < Deploy
|
|||
# Sincroniza hacia el directorio remoto
|
||||
#
|
||||
# @return [Boolean]
|
||||
def rsync
|
||||
run %(rsync -aviH --timeout=5 #{Shellwords.escape source}/ #{Shellwords.escape destination}/)
|
||||
def rsync(output: output)
|
||||
run %(rsync -aviH --timeout=5 #{Shellwords.escape source}/ #{Shellwords.escape destination}/), output: output
|
||||
end
|
||||
|
||||
# El origen es el destino de la compilación
|
||||
|
|
Loading…
Reference in a new issue