class WinRM::Output
This class holds raw output as a hash, and has convenience methods to parse.
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/winrm/output.rb, line 19 def initialize super self[:data] = [] end
Public Instance Methods
output()
click to toggle source
# File lib/winrm/output.rb, line 24 def output self[:data].flat_map do | line | [line[:stdout], line[:stderr]] end.compact.join end
stderr()
click to toggle source
# File lib/winrm/output.rb, line 36 def stderr self[:data].map do | line | line[:stderr] end.compact.join end
stdout()
click to toggle source
# File lib/winrm/output.rb, line 30 def stdout self[:data].map do | line | line[:stdout] end.compact.join end