Sha256: 494807788ff97c02c217250d75a515f01ed091c8b403a45d40423d067bf8788e
Contents?: true
Size: 637 Bytes
Versions: 13
Compression:
Stored size: 637 Bytes
Contents
module CapistranoMulticonfigParallel class OutputStream def self.hook(stringio) $stdout = new($stdout, stringio) end def self.unhook $stdout.finish if $stdout.is_a? CapistranoMulticonfigParallel::OutputStream $stdout = STDOUT end attr_accessor :real, :stringio def initialize(real_stdout, stringio) self.real= real_stdout self.stringio = stringio end def write(*args) @stringio.print(*args) @real.write(*args) @real.flush end def finish end def method_missing(name, *args, &block) @real.send name, *args, &block end end end
Version data entries
13 entries across 13 versions & 1 rubygems