Class: WinRM::WSMV::CreatePipeline

Inherits:
Base
  • Object
show all
Defined in:
lib/winrm/wsmv/create_pipeline.rb

Overview

WSMV message to execute a command via psrp

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

Instance Method Summary collapse

Methods inherited from Base

#build

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

#namespaces

Constructor Details

#initialize(session_opts, shell_id, command_id, fragment = nil) ⇒ CreatePipeline

Returns a new instance of CreatePipeline.



24
25
26
27
28
29
# File 'lib/winrm/wsmv/create_pipeline.rb', line 24

def initialize(session_opts, shell_id, command_id, fragment = nil)
  @command_id = command_id
  @session_opts = session_opts
  @shell_id = shell_id
  @fragment = fragment
end

Instance Attribute Details

#command_idObject

Returns the value of attribute command_id.



22
23
24
# File 'lib/winrm/wsmv/create_pipeline.rb', line 22

def command_id
  @command_id
end

#fragmentObject

Returns the value of attribute fragment.



22
23
24
# File 'lib/winrm/wsmv/create_pipeline.rb', line 22

def fragment
  @fragment
end

#shell_idObject

Returns the value of attribute shell_id.



22
23
24
# File 'lib/winrm/wsmv/create_pipeline.rb', line 22

def shell_id
  @shell_id
end