Sha256: 7b4162c3bbc2ceab4ac630fa7a17c994cd0e56c6339e1aeb22448cd33b790680
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
$:.unshift ::File.dirname(__FILE__) + '/../lib' require 'rubygems' require 'raemon' class Test include Raemon::Worker def start logger.info "=> Starting worker #{Process.pid}" end def stop logger.info "=> Stopping worker #{Process.pid}" exit end def execute loop do stop if shutting_down? logger.warn "I'm executing .. #{Process.ppid}:#{Process.pid}" sleep 2 end end end Raemon::Master.startup 3, Test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
raemon-0.1.2 | examples/test.rb |
raemon-0.1.1 | examples/test.rb |