root/trunk/lib/backgroundrb.rb

Revision 326, 0.7 kB (checked in by gethema..@gmail.com, 2 months ago)

check in new backgroundrb code

Line 
1 # Backgroundrb
2 # FIXME: check if data that we are writing to the socket should end with newline
3 require "pathname"
4 require "packet"
5 require "ostruct"
6
7 BACKGROUNDRB_ROOT = Pathname.new(RAILS_ROOT).realpath.to_s
8 require "backgroundrb/bdrb_config"
9 unless defined?(BDRB_CONFIG)
10   BDRB_CONFIG = BackgrounDRb::Config.read_config("#{BACKGROUNDRB_ROOT}/config/backgroundrb.yml")
11 end
12
13 require "backgroundrb/bdrb_client_helper"
14 require "backgroundrb/bdrb_job_queue"
15 require "backgroundrb/bdrb_conn_error"
16 require "backgroundrb/rails_worker_proxy"
17 require "backgroundrb/bdrb_connection"
18 require "backgroundrb/bdrb_cluster_connection"
19
20 MiddleMan = BackgrounDRb::ClusterConnection.new
21
22
Note: See TracBrowser for help on using the browser.