Sha256: c4a4cf026fe68c25f116506bfb53ff8b444578886dea9dd9f5a78a8b00625f29
Contents?: true
Size: 687 Bytes
Versions: 79
Compression:
Stored size: 687 Bytes
Contents
module CapistranoMulticonfigParallel # class used to hook into the output stream 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
79 entries across 79 versions & 1 rubygems