Method: WinRM::Shells::Base#run

Defined in:
lib/winrm/shells/base.rb

#run(command, arguments = [], &block) {|standard, standard| ... } ⇒ Object

Runs the specified command with optional arguments

Yield Parameters:

  • standard (string)

    out response text

  • standard (string)

    error response text

Yield Returns:



78
79
80
81
82
# File 'lib/winrm/shells/base.rb', line 78

def run(command, arguments = [], &block)
  with_command_shell(command, arguments) do |shell, cmd|
    response_reader.read_output(command_output_message(shell, cmd), &block)
  end
end