Class: Cxxproject::Utils::Executable
- Inherits:
-
Object
- Object
- Cxxproject::Utils::Executable
- Defined in:
- lib/cxxproject/utils/rbcurse_executable_ext.rb
Instance Method Summary collapse
Instance Method Details
#run_command(task, command) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/cxxproject/utils/rbcurse_executable_ext.rb', line 4 def run_command(task, command) require 'open3' stdin, stdout, stderr = Open3.popen3(command) puts "StdOut:" puts stdout.readlines puts "StdErr:" puts stderr.readlines end |