Class: WinRM::Shells::Cmd
- Includes:
- WSMV::SOAP
- Defined in:
- lib/winrm/shells/cmd.rb
Overview
Proxy to a remote cmd.exe shell
Constant Summary
Constants included from WSMV::SOAP
WSMV::SOAP::NS_ADDRESSING, WSMV::SOAP::NS_CIMBINDING, WSMV::SOAP::NS_ENUM, WSMV::SOAP::NS_SCHEMA_INST, WSMV::SOAP::NS_SOAP_ENV, WSMV::SOAP::NS_TRANSFER, WSMV::SOAP::NS_WIN_SHELL, WSMV::SOAP::NS_WSMAN_CONF, WSMV::SOAP::NS_WSMAN_DMTF, WSMV::SOAP::NS_WSMAN_FAULT, WSMV::SOAP::NS_WSMAN_MSFT
Constants inherited from Base
Base::ERROR_OPERATION_ABORTED, Base::FAULTS_FOR_RESET, Base::SHELL_NOT_FOUND, Base::TOO_MANY_COMMANDS
Constants included from Retryable
Retryable::RETRYABLE_EXCEPTIONS
Instance Attribute Summary
Attributes inherited from Base
#connection_opts, #logger, #shell_id, #shell_opts, #shell_uri, #transport
Class Method Summary collapse
Methods included from WSMV::SOAP
Methods inherited from Base
#close, finalize, #initialize, #run
Methods included from Retryable
Constructor Details
This class inherits a constructor from WinRM::Shells::Base
Class Method Details
.close_shell(connection_opts, transport, shell_id) ⇒ Object
23 24 25 26 |
# File 'lib/winrm/shells/cmd.rb', line 23 def close_shell(connection_opts, transport, shell_id) msg = WinRM::WSMV::CloseShell.new(connection_opts, shell_id: shell_id) transport.send_request(msg.build) end |