lib/salus/scanners/base.rb
# Runs a command on the terminal.
Runs a command on the terminal.
Runs a command on the terminal .
def run_shell(command, env: {}, stdin_data: '')
      command = command.split unless command.is_a?(Array)
      stdout, stderr, exit_status = Open3.capture3(env, *command, stdin_data: stdin_data)
      { stdout: stdout, stderr: stderr, exit_status: exit_status }
    end
def run_shell ( command , env : { } , stdin_data : '' ) command = command . split unless command . is_a? ( Array ) stdout , stderr , exit_status = Open3 . capture3 ( env , * command , stdin_data : stdin_data ) { stdout : stdout , stderr : stderr , exit_status : exit_status } end
Runs a command on the terminal.
Runs a command on the terminal .
# If we're passed a string, convert it to an array beofre passing to capture3
command
env
stdin_data