Unix Whereis

Unix Whereis provides Ruby interface to UNIX whereis command. Some examples follow: (for details, see module documentation)

require "unix/whereis"

Whereis.file? :ls   
# will return ["/bin/ls", "/usr/share/man/man1/ls.1.gz", "/usr/share/man/man1/ls.1p.gz"]

Whereis.binary? :ls
# will return ["/bin/ls"]

Whereis.available? :ls
# will return true

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b 20101220-my-change).
  3. Commit your changes (git commit -am "Added something").
  4. Push to the branch (git push origin 20101220-my-change).
  5. Create an Issue with a link to your branch.
  6. Enjoy a refreshing Diet Coke and wait.

Copyright © 2011 Martin Kozák. See LICENSE.txt for further details.