Sha256: 090297e82881ff81ba0073c0c897a249232f29b862bda1e862fd3ad52a95a0a9
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
module CapistranoMulticonfigParallel class InputStream def self.hook(actor) $stdin = new($stdin, actor) end def self.unhook $stdin.finish if $stdin.is_a? CapistranoMulticonfigParallel::InputStream $stdin = STDIN end attr_accessor :real, :actor def initialize(real_stdin, actor) self.real = real_stdin self.actor = actor end def gets(*args) @actor.wait_for_stdin_input end def finish end def method_missing(name, *args, &block) @real.send name, *args, &block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano_multiconfig_parallel-0.9.0 | lib/capistrano_multiconfig_parallel/extensions/input_stream.rb |