Module | Buildr::DRbApplication |
In: |
addon/buildr/drb.rb
(CVS)
|
This addon allows you start a DRb server hosting a buildfile, so that you can later invoke tasks on it without having to load the complete buildr runtime again.
Usage:
buildr -r buildr/drb drb:start
Once the server has been started you can invoke tasks using a simple script:
#!/usr/bin/env ruby require 'rubygems' require 'buildr/drb' Buildr::DRbApplication.run
Save this script as ‘dbuildr’, make it executable and use it to invoke tasks.
dbuildr clean compile
The dbuildr script will run as the server if there isn‘t one already running. Subsequent calls to dbuildr will act as the client and invoke the tasks you provide in the server. If the buildfile has been modified it will be reloaded on the BuildrServer.
JRuby users can use a nailgun client to invoke tasks as fast as possible without having to incur JVM startup time. See the documentation for buildr/nailgun.
PORT | = | port.to_i |
original | [RW] | |
snapshot | [RW] |