Class: WinRM::HTTP::TransportFactory
- Inherits:
-
Object
- Object
- WinRM::HTTP::TransportFactory
- 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
-
#create_transport(connection_opts) ⇒ HttpTransport
Creates a new WinRM HTTP transport using the specified connection options.
Instance Method Details
#create_transport(connection_opts) ⇒ HttpTransport
Creates a new WinRM HTTP transport using the specified connection options.
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 |