GitList
Repositories
Help
Report an Issue
rcm
Code
Commits
Branches
Tags
Search
Tree:
22644c9
Branches
Tags
master
rcm
rcm_utils.rb
Refactoring. Adding pkg mgmt.
Dev
commited
22644c9
at 2018-06-15 07:44:47
rcm_utils.rb
Blame
History
Raw
require 'open3' module RCM def cmd(command) stdin, stdout, stderr, wait_thr = Open3.popen3(command) output = stdout.gets(nil) stdout.close error = stderr.gets(nil) stderr.close exit_code = Integer(wait_thr.value) { exit_code: exit_code, output: output, error: error } end module_function :cmd end