open3 for mruby
C Ruby
Switch branches/tags
Nothing to show
Clone or download
k0kubun Merge pull request #9 from sorah/fixbuf
No expect of EAGAIN from sysread
Latest commit b7480b6 Feb 26, 2017

README.md

mruby-open3 Build Status

Open3 for mruby

Installation

MRuby::Build.new do |conf|
  # ...
  conf.gem mgem: 'mruby-open3'
end

Usage

Currently only Open3.capture3 is supported.

Open3.capture3("ruby", "-e", "$stdout.puts 'out'; $stderr.puts 'err'; exit 2")
#=> ["out\n", "err\n", #<Process::Status: pid=3903,exited(2)>]

License

MIT License