Method: ShellCommand.raw_do_command
- Defined in:
- lib/shell_commands/shell_command.rb
.raw_do_command(command) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/shell_commands/shell_command.rb', line 17 def self.raw_do_command(command) result = %x[#{command} 2>&1] while not $?.exited? do end @@last_result = { "command" => command, "result" => result, "success" => $?.success? } @@results << @@last_result return $?.success? end |