Method: Docker::Util.attach_for_multiplex
- Defined in:
- lib/docker/util.rb
.attach_for_multiplex(block, msg_stack) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/docker/util.rb', line 36 def attach_for_multiplex(block, msg_stack) = Docker::Messages.new lambda do |c,r,t| = .(c) unless block.nil? ..each do |msg| block.call(:stdout, msg) end ..each do |msg| block.call(:stderr, msg) end end msg_stack.append() end end |