module Buildr::Nailgun
This addon is provided for fast interaction with a DRb BuildrServer (buildr/drb).
This module delegates task invocation to the BuildrServer, it only implements nailgun required logic (server/client).
Usage:
buildr -r buildr/nailgun nailgun:start
Once the server has been started you can invoke tasks using the nailgun client installed on $JRUBY_HOME/tool/nailgun. It's recommended to add this path to your PATH environment variable, so that the ng command is available at any dir.
ng build # invoke the build task
Constants
- ADDON_BIN
- ARTIFACT_SPEC
- NAME
- PORT
- URL
- VERSION
Public Instance Methods
jruby_home()
click to toggle source
Returns the path to JRUBY_HOME.
# File addon/buildr/nailgun.rb, line 51 def jruby_home ENV['JRUBY_HOME'] || RbConfig::CONFIG['prefix'] end
nailgun_home()
click to toggle source
Returns the path to NAILGUN_HOME.
# File addon/buildr/nailgun.rb, line 56 def nailgun_home ENV['NAILGUN_HOME'] || File.expand_path('tool/nailgun', jruby_home) end
tmp_path(*paths)
click to toggle source
# File addon/buildr/nailgun.rb, line 60 def tmp_path(*paths) File.join(Dir.tmpdir, 'nailgun', *paths) end