Class: DDSL::Shell
- Inherits:
-
Object
- Object
- DDSL::Shell
- Defined in:
- lib/ddsl/shell.rb
Defined Under Namespace
Classes: ExitStatusError
Instance Method Summary collapse
-
#call!(argv) ⇒ void
Run given list of arguments in a shell.
-
#invoke(argv) ⇒ Bool
Invoke given argument list in a subshell.
Instance Method Details
#call!(argv) ⇒ void
This method returns an undefined value.
Run given list of arguments in a shell.
Note: $stdin, $stout and $stderr will be forwarded
18 19 20 |
# File 'lib/ddsl/shell.rb', line 18 def call!(argv) raise ExitStatusError unless invoke(argv) end |
#invoke(argv) ⇒ Bool
Invoke given argument list in a subshell
29 30 31 32 33 |
# File 'lib/ddsl/shell.rb', line 29 def invoke(argv) system( argv.join(' ') ) end |