saimon@iris ~ $ sudo gem update fastri
Upgrading installed gems...
Updating Gem source index for: http://gems.rubyforge.org
Attempting remote upgrade of fastri
Attempting remote installation of 'fastri'
Successfully installed fastri-0.2.0.1
Installing RDoc documentation for fastri-0.2.0.1...
Gems: [fastri] updated
saimon@iris ~ $ fri --help
Usage: fri [options]
-s, --bind ADDR Bind to ADDR for incoming DRb connections.
(default: 127.0.0.1)
-O, --order ORDER Specify lookup order.
(default: eEnNpPxX)
Uppercase: case-indep.
e:exact n:nested p:partial (completion)
x:nested and partial
a:match method name anywhere
--show-matches Only show matching entries.
-S, --full-text Perform full-text search.
-F, --full-text-dir DIR Use full-text index in DIR
(default: /home/saimon/.fastri-fulltext)
-f, --format FMT Format to use when displaying output:
ansi, plain (default: ansi)
-w, --width WIDTH Set the width of the output.
-h, --help Show this help message
saimon@iris ~ $ fastri-server --help
Usage: fastri-server.rb [options]
-a, --allow HOST Allow connections from HOST.
(default: 127.0.0.1)
-s, --bind ADDR Listen to connections on ADDR.
(default: 127.0.0.1)
--index-file=FILE Use index file.
(default: /home/saimon/.fastri-index)
-b, --rebuild-index Only rebuild index.
-F, --full-text-dir DIR Place full-text index in DIR
(default: /home/saimon/.fastri-fulltext)
-B, --rebuild-full-text Rebuild full-text index.
-h, --help Show this help message
saimon@iris ~ $ fastri-server -b
Building index.
Indexed:
* 7591 methods
* 1321 classes/modules
Needed 0.550153 seconds
saimon@iris ~ $ fastri-server -B
saimon@iris ~ $ p fast
9867 pts/4 S 0:00 ruby /usr/bin/fastri-server
9935 pts/4 R+ 0:00 grep --colour=auto fast
saimon@iris ~ $ kill -9 9867
saimon@iris ~ $ p fast
9937 pts/4 R+ 0:00 grep --colour=auto fast
saimon@iris ~ $ fastri-server &
[1] 9940
saimon@iris ~ $ Looking for Ring server...
No Ring server found, starting my own.
fastri-server 0.0.1 (FastRI 0.2.0) listening on druby://127.0.0.1:53261
ACL:
deny all
allow 127.0.0.1
saimon@iris ~ $ fri -S ActiveRecord connect | head -15
nil