Class: Dockit::Log
- Inherits:
-
Object
- Object
- Dockit::Log
- Defined in:
- lib/dockit.rb
Class Method Summary collapse
-
.print_chunk(chunk) ⇒ Object
new docker app (xhyve) returns multi-line (multiple JSON hash) chunks.
Instance Method Summary collapse
Class Method Details
.print_chunk(chunk) ⇒ Object
new docker app (xhyve) returns multi-line (multiple JSON hash) chunks. So, split them up before trying to parse them.
22 23 24 |
# File 'lib/dockit.rb', line 22 def print_chunk(chunk) chunk.each_line { |c| print_one_chunk(c) } end |
Instance Method Details
#debug(msg) ⇒ Object
16 17 18 |
# File 'lib/dockit.rb', line 16 def debug(msg) $stderr.puts "DEBUG: " + msg.join(' ') end |