Skip to content

Commit

Permalink
Fix RJack:: references
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Apr 25, 2010
1 parent 8b6ffac commit 3cb6566
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/hashdot-test-daemon.rb
Expand Up @@ -26,8 +26,9 @@ module Daemon
# The mock service
class Runner
include RJack

def initialize
@log = SLF4J[self.class]
@log = SLF4J[ self.class ]
@log.info "Initialized hashdot-daemon (VERSION = #{VERSION})"
@log.info "SLF4J::VERSION = #{SLF4J::VERSION}"
ShutdownHandler.register
Expand All @@ -52,7 +53,10 @@ def run
class ShutdownHandler
Thread = Java::java.lang.Thread
Runtime = Java::java.lang.Runtime

include Java::java.lang.Runnable
include RJack

def run
SLF4J[self.class].info "Shutting down (sleep 3)"
sleep 3.0
Expand Down

0 comments on commit 3cb6566

Please sign in to comment.