class MXC::Chunk
A piece of output from a running sandbox, as passed to the block of Sandbox#run and Process#each.
sandbox.run("python3 build.py") { |chunk| print chunk.content }
Attributes
Returns the output as a String.
Returns the stream the output came from: :stdout or :stderr.
Public Instance Methods
Source
# File lib/mxc/chunk.rb, line 25 def stderr? stream == :stderr end
Returns true when the chunk came from standard error.
Source
# File lib/mxc/chunk.rb, line 20 def stdout? stream == :stdout end
Returns true when the chunk came from standard output.