purzelrakete / workling

easily do background work in rails, without commiting to a particular runner. comes with starling, bj and spawn runners.

This URL has Read+Write access

rtomayko (author)
Wed Mar 18 07:49:45 -0700 2009
purzelrakete (committer)
Wed Mar 18 11:34:00 -0700 2009
workling / script / workling_client
100644 18 lines (15 sloc) 0.446 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby
require 'rubygems'
require 'daemons'
 
workling = File.join(File.dirname(__FILE__), '..', 'vendor', 'plugins', 'workling', 'script', 'listen.rb')
options = {
  :app_name => "workling",
  :ARGV => ARGV,
  :dir_mode => :normal,
  :dir => File.join(File.dirname(__FILE__), '..', 'log'),
  :log_output => true,
  :multiple => false,
  :backtrace => true,
  :monitor => true
}
 
Daemons.run(workling, options)