Class: Pmux::STDOUTWriter

Inherits:
Writer
  • Object
show all
Defined in:
lib/pmux/writer.rb

Constant Summary

Constants inherited from Writer

Writer::CHUNK_SIZE

Instance Method Summary collapse

Methods inherited from Writer

#finish

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