Class: WinRM::WSMV::CloseShell
- Defined in:
- lib/winrm/wsmv/close_shell.rb
Overview
WSMV message to close a remote shell
Constant Summary
Constants included from Header
Header::RESOURCE_URI_CMD, Header::RESOURCE_URI_POWERSHELL
Constants included from SOAP
SOAP::NS_ADDRESSING, SOAP::NS_CIMBINDING, SOAP::NS_ENUM, SOAP::NS_SCHEMA_INST, SOAP::NS_SOAP_ENV, SOAP::NS_TRANSFER, SOAP::NS_WIN_SHELL, SOAP::NS_WSMAN_CONF, SOAP::NS_WSMAN_DMTF, SOAP::NS_WSMAN_FAULT, SOAP::NS_WSMAN_MSFT
Instance Method Summary collapse
-
#initialize(session_opts, shell_opts) ⇒ CloseShell
constructor
A new instance of CloseShell.
Methods inherited from Base
Methods included from Header
#action_command, #action_delete, #action_enumerate, #action_enumerate_pull, #action_get, #action_receive, #action_send, #action_signal, #merge_headers, #resource_uri_cmd, #resource_uri_shell, #resource_uri_wmi, #selector_shell_id, #shared_headers
Methods included from SOAP
Constructor Details
#initialize(session_opts, shell_opts) ⇒ CloseShell
Returns a new instance of CloseShell.
21 22 23 24 25 26 27 |
# File 'lib/winrm/wsmv/close_shell.rb', line 21 def initialize(session_opts, shell_opts) raise 'shell_opts[:shell_id] is required' unless shell_opts[:shell_id] @session_opts = session_opts @shell_id = shell_opts[:shell_id] @shell_uri = shell_opts[:shell_uri] || RESOURCE_URI_CMD end |