mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:31:42 +00:00
poder ver la salida opcionalmente
This commit is contained in:
parent
d18293bea3
commit
ef00ce4d12
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Deploy < ApplicationRecord
|
|||
#
|
||||
# @param [String]
|
||||
# @return [Boolean]
|
||||
def run(cmd)
|
||||
def run(cmd, output: false)
|
||||
r = nil
|
||||
lines = []
|
||||
|
||||
|
@ -61,6 +61,7 @@ class Deploy < ApplicationRecord
|
|||
# TODO: Enviar a un websocket para ver el proceso en vivo?
|
||||
o.each do |line|
|
||||
lines << line
|
||||
puts line if output
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue