Class: WinRM::HTTP::TransportFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/winrm/http/transport_factory.rb

Overview

Factory for creating a HTTP transport that can be used for WinRM SOAP calls.

Instance Method Summary collapse

Instance Method Details

#create_transport(connection_opts) ⇒ HttpTransport

Creates a new WinRM HTTP transport using the specified connection options.

Parameters:

  • connection_opts (ConnectionOpts|Hash)

    The connection ConnectionOpts.

Returns:

  • (HttpTransport)

    A transport instance for making WinRM calls.



24
25
26
27
28
# File 'lib/winrm/http/transport_factory.rb', line 24

def create_transport(connection_opts)
  transport = connection_opts[:transport]
  validate_transport!(transport)
  send "init_#{transport}_transport", connection_opts
end