5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 23:16:56 +00:00

poder ver la salida opcionalmente

This commit is contained in:
f 2022-03-14 13:39:54 -03:00
parent 56b2556447
commit 2b4cf2bc75

View file

@ -55,7 +55,7 @@ class Deploy < ApplicationRecord
#
# @param [String]
# @return [Boolean]
def run(cmd)
def run(cmd, output: false)
r = nil
lines = []
@ -68,6 +68,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