public
Description: A process execution library which doesn't suck.
Clone URL: git://github.com/codahale/ropen.git
ropen / README.markdown
100644 15 lines (11 sloc) 0.327 kb

Ropen

A process execution library which doesn't suck.

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