GitList
Repositories
Help
Report an Issue
rcm
Code
Commits
Branches
Tags
Search
Tree:
357b018
Branches
Tags
master
rcm
rcm_utils.rb
Initial commit
Dev
commited
357b018
at 2018-06-14 23:07:57
rcm_utils.rb
Blame
History
Raw
require 'open3' module RCM module_function :cmd def cmd(command) stdin, stdout, stderr, wait_thr = Open3.popen3(command) output = stdout.gets(nil) stdout.close errors = stderr.gets(nil) stderr.close exit_code = Integer(wait_thr.value) { exit_code: exit_code, output: output, errors: errors } end end