Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
It is a ruby wrapper of nailgun server.
tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
tasks
test
.gitignore
Gemfile
MIT-LICENSE
README.markdown
README.markdown~
README~
Rakefile
init.rb
install.rb
nailgun.gemspec
uninstall.rb

README.markdown

Nailgun

Nailgun is server that preloads JVM so no need to load JVM on each request.

nailgun is a ruby wrapper of nailgun server and it's command.

Make sure before installing You have to set classpath environment variable which is point to jre/lib path.

Install

./script/plugin install git://github.com/amardaxini/nailgun.git

rake nailgun

OR sudo gem insatll nailgun

Configuration

These are the default settings which can be overwritten in your enviroment configuration file:

Nailgun::NailgunConfig.options =
  {
      :java_bin => "java",
       :server_address =>'localhost',
      :port_no=>'2113'
  }

Example

Run Rake Task

Install as a plugin

rake nailgun

To start nailgun server(if you want you can overwrite default configuration)

script/nailgun start

To stop nailgun server

script/nailgun stop

Install as a Gem It will generate local configuration for nailgun_config update nailgun configuration and manage nailgun

To start nailgun server(if you want you can overwrite default configuration)

nailgun start

To stop nailgun server

nailgun stop

To add client side jar

Nailgun::NgCommand.ng_cp(absolute jar path)

To create alias of class

Nailgun::NgCommand.ng_alias(alias name,class name)

Make sure that class name is exist in client side jar path and its contain main To easy to use nailgun server best way is combine all jar to make one jar

Copyright (c) 2010 amardaxini, released under the MIT license

Something went wrong with that request. Please try again.