class Polars::Command

Command Class

Attributes

command_line[R]
error[R]
exit_status[R]
output[R]

Public Class Methods

new(command) click to toggle source
# File lib/polars/system.rb, line 25
def initialize(command)
  @command = command
end

Public Instance Methods

run() click to toggle source
# File lib/polars/system.rb, line 29
def run
  result = AwesomeSpawn.run(@command)
  @exit_status = result.exit_status
  @command_line = result.command_line
  @output = result.output
  @error = result.error
  @exit_status
end