Class: WinRM::WSMV::Command
Overview
WSMV message to execute a command inside 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 Attribute Summary collapse
-
#command_id ⇒ Object
readonly
Returns the value of attribute command_id.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(session_opts, cmd_opts) ⇒ Command
constructor
A new instance of Command.
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, cmd_opts) ⇒ Command
Returns a new instance of Command.
23 24 25 26 27 |
# File 'lib/winrm/wsmv/command.rb', line 23 def initialize(session_opts, cmd_opts) @command_id = SecureRandom.uuid.to_s.upcase validate_opts(session_opts, cmd_opts) init_ops(session_opts, cmd_opts) end |
Instance Attribute Details
#command_id ⇒ Object (readonly)
Returns the value of attribute command_id.
21 22 23 |
# File 'lib/winrm/wsmv/command.rb', line 21 def command_id @command_id end |
Instance Method Details
#build ⇒ Object
29 30 31 32 |
# File 'lib/winrm/wsmv/command.rb', line 29 def build xml = super issue69_unescape_single_quotes(xml) end |