PWD_FILE |
= |
File.expand_path "~/.rct-fork.pwd" |
|
Contains $PWD of rct-fork server. Exists only while running.
|
USAGE_HELP |
= |
<<XXX rct-fork and rct-fork-client (we) are originally ruby_fork/ruby_fork_client in ZenTest by Zen Spider Software and are slightly modified for rcodetools. Completion or document browsing in a script with heavy libraries such as Rails takes a significant latency. We eliminate constant overhead of loading heavy libraries. rct-fork loads libraries you want to pre-load and opens up a server socket and waits for connection. When a connection comes in rct-fork forks to make a copy of the environment. rct-fork loads rubygems at startup. rct-fork-client connects to the rct-fork server and runs script in server's environment. xmpfilter/rct-complete/rct-doc can auto-detect rct-fork process with --fork option. This means that once you start up rct-fork, you do not have to start up rct-fork-client manually. demo/fork-demo.sh shows rct-fork example. !!WARNING!! We are only meant to run xmpfilter/rct-complete/rct-doc! If you want to run other programs, use original ruby_fork/ruby_fork_client. XXX |
DEFAULT_SETTINGS |
= |
{ :requires => [], :code => [], :extra_paths => [], :port => PORT, } |
|
‘
|