Class: Gel::Command::Stub
- Inherits:
-
Gel::Command
- Object
- Gel::Command
- Gel::Command::Stub
- Defined in:
- lib/gel/command/stub.rb
Instance Attribute Summary
Attributes inherited from Gel::Command
Instance Method Summary collapse
Methods inherited from Gel::Command
extract_word, handle_error, run
Instance Method Details
#run(command_line) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gel/command/stub.rb', line 4 def run(command_line) stub_command, _path, *arguments = command_line command = Gel::Command::Exec.new command.run([stub_command, *arguments], from_stub: true) ensure self.reraise = command.reraise if command end |