Method: WinRM::Shells::Base#initialize

Defined in:
lib/winrm/shells/base.rb

#initialize(connection_opts, transport, logger, shell_opts = {}) ⇒ Base

Create a new Cmd shell

Parameters:

  • connection_opts (ConnectionOpts)

    The WinRM connection options

  • transport (HttpTransport)

    The WinRM SOAP transport

  • logger (Logger)

    The logger to log diagnostic messages to

  • shell_opts (Hash) (defaults to: {})

    Options targeted for the created shell



48
49
50
51
52
53
# File 'lib/winrm/shells/base.rb', line 48

def initialize(connection_opts, transport, logger, shell_opts = {})
  @connection_opts = connection_opts
  @transport = transport
  @logger = logger
  @shell_opts = shell_opts
end