Method: PSRP::WSMV::ReceiveOutput#initialize

Defined in:
lib/wsmv/commands/receive.rb

#initialize(session_opts, command_out_opts) ⇒ ReceiveOutput

Returns a new instance of ReceiveOutput.



24
25
26
27
28
29
30
# File 'lib/wsmv/commands/receive.rb', line 24

def initialize(session_opts, command_out_opts)
  @session_opts = session_opts
  @shell_id = command_out_opts[:shell_id]
  @command_id = command_out_opts[:command_id]
  @shell_uri = command_out_opts[:shell_uri] || RESOURCE_URI_POWERSHELL
  @out_streams = command_out_opts[:out_streams] || %w(stdout)
end