Class: WinRM::PSRP::MessageFactory
- Inherits:
-
Object
- Object
- WinRM::PSRP::MessageFactory
- Defined in:
- lib/winrm/psrp/message_factory.rb
Overview
Creates WinRM::PSRP::Message instances for various PSRP messages
Class Method Summary collapse
-
.create_pipeline_message(runspace_pool_id, pipeline_id, command) ⇒ Object
Creates a new PSRP message that creates pipline to execute a command.
-
.init_runspace_pool_message(runspace_pool_id) ⇒ Object
Creates a new init runspace pool PSRP message.
-
.session_capability_message(runspace_pool_id) ⇒ Object
Creates a new session capability PSRP message.
Class Method Details
.create_pipeline_message(runspace_pool_id, pipeline_id, command) ⇒ Object
Creates a new PSRP message that creates pipline to execute a command. response.
48 49 50 51 52 53 54 55 |
# File 'lib/winrm/psrp/message_factory.rb', line 48 def (runspace_pool_id, pipeline_id, command) Message.new( runspace_pool_id, Message::MESSAGE_TYPES[:create_pipeline], render('create_pipeline', command: command.encode(xml: :text)), pipeline_id ) end |
.init_runspace_pool_message(runspace_pool_id) ⇒ Object
Creates a new init runspace pool PSRP message.
35 36 37 38 39 40 41 |
# File 'lib/winrm/psrp/message_factory.rb', line 35 def (runspace_pool_id) Message.new( runspace_pool_id, Message::MESSAGE_TYPES[:init_runspacepool], render('init_runspace_pool') ) end |
.session_capability_message(runspace_pool_id) ⇒ Object
Creates a new session capability PSRP message.
25 26 27 28 29 30 31 |
# File 'lib/winrm/psrp/message_factory.rb', line 25 def (runspace_pool_id) Message.new( runspace_pool_id, Message::MESSAGE_TYPES[:session_capability], render('session_capability') ) end |