Cleanup
This commit is contained in:
parent
eb0aa2105c
commit
b8b7cc8d12
3 changed files with 5 additions and 5 deletions
|
@ -31,15 +31,15 @@ class FormatStaged
|
|||
[pid, r]
|
||||
end
|
||||
|
||||
def read_output(r, lines: true, silent: false)
|
||||
result = r.read
|
||||
def read_output(output, lines: true, silent: false)
|
||||
result = output.read
|
||||
splits = result.split("\n")
|
||||
if @verbose && !silent
|
||||
splits.each do |line|
|
||||
puts "< #{line}"
|
||||
end
|
||||
end
|
||||
r.close
|
||||
output.close
|
||||
|
||||
lines ? splits : result
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue