Class: Pmux::STDOUTWriter
Constant Summary
Constants inherited from Writer
Instance Method Summary collapse
Methods inherited from Writer
Instance Method Details
#write(path) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/pmux/writer.rb', line 10 def write path open(path) {|f| until f.eof? data = f.read(CHUNK_SIZE) STDOUT.write data end } end |