public
Description: A process execution library which doesn't suck.
Clone URL: git://github.com/codahale/ropen.git
codahale (author)
Thu May 15 14:51:17 -0700 2008
commit  d65e7a88207dce5a81c4536b822bacdfbbd8f683
tree    b486e40ea12ce34a4aa30ca1e0722985bc956f95
parent  0c2fa7886f32f108f8a4dfefedbbab2e17361596
ropen /
README.markdown

Ropen

A process execution library which doesn't suck.

  cmd = Ropen::Command.new("/bin/cat", "/home/coda/my-recipes.txt")
  cmd.stdout.on_output do |line|
    if line =~ /sugar/
      puts line
    end
    cmd.stdin.puts "cat doesn't take input, but imagine if it did..."
  end
  cmd.run