Guest User

Untitled

a guest
Apr 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def initialize()
  2. require 'drb'
  3. log.info("Starting remote connector")
  4. unless ENV['RAILS_ENV'] == 'production'
  5. require 'drb/acl'
  6. acl = ACL.new(%w(allow all))
  7. DRb.install_acl(acl)
  8. end
  9. DRb.start_service(@@binding_uri, self)
  10. log.info("Started remote connector at #{DRb.uri}")
  11. @connectors= Hash.new
  12. DRb.thread.join
  13. end
Add Comment
Please, Sign In to add comment