public
Description: A process execution library which doesn't suck.
Clone URL: git://github.com/codahale/ropen.git
codahale (author)
Thu May 15 16:33:54 -0700 2008
commit  949057c781d8444cc4d87c5dcf915b1a065d6e89
tree    b9c89b87014c9c2884dda2cb15a8670d5433a198
parent  89febc47ed1b69caa79de6ae1b4b780ad7304866
ropen /
name age message
file .gitignore Wed May 14 21:41:33 -0700 2008 First commit. Nothing happening here. Move along. [codahale]
file CHANGELOG Wed May 14 21:41:33 -0700 2008 First commit. Nothing happening here. Move along. [codahale]
file MIT-LICENSE Wed May 14 21:41:33 -0700 2008 First commit. Nothing happening here. Move along. [codahale]
file README.markdown Thu May 15 00:34:20 -0700 2008 Added events with callbacks and such. Because I... [codahale]
file Rakefile Wed May 14 21:57:10 -0700 2008 Split spec and spec:rcov tasks. [codahale]
directory lib/ Thu May 15 16:33:54 -0700 2008 Document Ropen::Spool. [codahale]
directory spec/ Thu May 15 16:26:26 -0700 2008 Added a per-stream accumulator. [codahale]
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