module Buildr::Nailgun::Server
Public Class Methods
new(host, port)
click to toggle source
Calls superclass method
# File addon/buildr/nailgun.rb, line 126 def initialize(host, port) @host = host || "*" @port = port super(host, port) end
Public Instance Methods
start()
click to toggle source
# File addon/buildr/nailgun.rb, line 132 def start self.allow_nails_by_class_name = false NGClient::Main.nail = NGClient.new self.default_nail_class = NGClient::Main @thread = java.lang.Thread.new(self) @thread.setName(to_s) @thread.start sleep 1 while getPort == 0 info "#{self} Started." end
stop()
click to toggle source
# File addon/buildr/nailgun.rb, line 146 def stop @thread.kill end
to_s()
click to toggle source
# File addon/buildr/nailgun.rb, line 150 def to_s version = "Buildr #{Buildr::VERSION} #{RUBY_PLATFORM[/java/] && '(JRuby '+ (Buildr.settings.build['jruby'] || JRUBY_VERSION) +')'}" self.class.name+'('+[version, @host, @port].join(', ')+')' end