Method: OpenC3::OperatorProcess#extract_output
- Defined in:
- lib/openc3/operators/operator.rb
#extract_output ⇒ Object
This is method is used in here and in ProcessManager
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/openc3/operators/operator.rb', line 212 def extract_output output = '' if @process stdout = @process.io.stdout.finalize stderr = @process.io.stderr.finalize # Always include the Stdout header for consistency and to show the option output << "Stdout:\n" output << stdout # Always include the nStderr header for consistency and to show the option output << "\nStderr:\n" output << stderr end output end |