class GemBootstrap::ShellHelper

@api private

Public Class Methods

new(io: Io.new) click to toggle source

@param [Io] io

# File lib/gem-bootstrap/shell_helper.rb, line 10
def initialize(io: Io.new)
  @io = io
end

Public Instance Methods

exec(command) click to toggle source
# File lib/gem-bootstrap/shell_helper.rb, line 14
def exec(command)
  # $CHILD_STATUS.exitstatus
  # $CHILD_STATUS.pid
  # TODO : deal with errors
  # TODO : direct input/output of the command to @input and @output
  system(command)
end