Class: GemBootstrap::ShellHelper Private
- Inherits:
-
Object
- Object
- GemBootstrap::ShellHelper
- Defined in:
- lib/gem-bootstrap/shell_helper.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #exec(command) ⇒ Object private
-
#initialize(io: Io.new) ⇒ ShellHelper
constructor
private
A new instance of ShellHelper.
Constructor Details
#initialize(io: Io.new) ⇒ ShellHelper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ShellHelper.
10 11 12 |
# File 'lib/gem-bootstrap/shell_helper.rb', line 10 def initialize(io: Io.new) @io = io end |
Instance Method Details
#exec(command) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 19 20 |
# 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 |