1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/shells/ruby-shell/pkg-descr
Akinori MUSHA f8eeebacaa Add ruby-shell, a Ruby library to run commands and control jobs like a
shell.  Pipes and redirections work just as expected:

  sh = Shell.cd("/foo")
  sh.cat("bar") | sh.tee("baz") > "baa"
  # or
  sh.transact do
    cat("bar") | tee("baz") > "baa"
  end
2001-03-16 09:02:00 +00:00

14 lines
359 B
Plaintext

shell.rb is a Ruby library to run commands and control jobs like a
shell. Pipes and redirections work just as expected:
sh = Shell.cd("/foo")
sh.cat("bar") | sh.tee("baz") > "baa"
# or
sh.transact do
cat("bar") | tee("baz") > "baa"
end
Author: Keiju Ishitsuka <keiju@ishitsuka.com>
WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=Shell