Method: CommandMapper::Command.capture
- Defined in:
- lib/command_mapper/command.rb
.capture(params = {}, **kwargs) {|command| ... } ⇒ String
Initializes and runs the command in a shell and captures all stdout output.
158 159 160 161 |
# File 'lib/command_mapper/command.rb', line 158 def self.capture(params={},**kwargs,&block) command = new(params,**kwargs,&block) command.capture_command end |