Method: CommandMapper::Command#capture_command

Defined in:
lib/command_mapper/command.rb

#capture_commandString

Runs the command in a shell and captures all stdout output.

Returns:

  • (String)

    The stdout output of the command.



764
765
766
# File 'lib/command_mapper/command.rb', line 764

def capture_command
  `#{command_string}`
end