Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def initialize()
- require 'drb'
- log.info("Starting remote connector")
- unless ENV['RAILS_ENV'] == 'production'
- require 'drb/acl'
- acl = ACL.new(%w(allow all))
- DRb.install_acl(acl)
- end
- DRb.start_service(@@binding_uri, self)
- log.info("Started remote connector at #{DRb.uri}")
- @connectors= Hash.new
- DRb.thread.join
- end
Add Comment
Please, Sign In to add comment