Top Level Namespace
Defined Under Namespace
Modules: CommandLine
Instance Method Summary collapse
-
#command_line(*args, **kwargs) {|stdin| ... } ⇒ Result
Run a command and get back the result.
-
#command_line!(*args, **kwargs, &block) ⇒ Result
Same as CommandLine.command_line except that a failure on exit raises an error.
Instance Method Details
#command_line(*args, **kwargs) {|stdin| ... } ⇒ Result
Run a command and get back the result.
35 36 37 |
# File 'lib/command_line/global.rb', line 35 def command_line(*args, **kwargs, &block) CommandLine.command_line(*args, **kwargs, &block) end |
#command_line!(*args, **kwargs, &block) ⇒ Result
Same as CommandLine.command_line except that a failure on exit raises an error.
54 55 56 |
# File 'lib/command_line/global.rb', line 54 def command_line!(*args, **kwargs, &block) CommandLine.command_line!(*args, **kwargs, &block) end |