Sha256: 8a3b879927d3c0822bdab639b4ccdc073056a028f5efef862e99524e64762898
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
# Define RubySkynet::Registry based on whether the ZooKeeper or Doozer gem is present module RubySkynet begin require 'zookeeper' require 'zookeeper/client' # Monkey-patch so that the Zookeeper JRuby code can handle nil values in Zookeeper require 'ruby_skynet/zookeeper/extensions/java_base' if defined?(::JRUBY_VERSION) Registry = RubySkynet::Zookeeper::Registry rescue LoadError begin require 'ruby_doozer' rescue LoadError raise LoadError, "Must gem install either 'zookeeper' or 'ruby_doozer'. 'zookeeper' is recommended" end Registry = Doozer::Registry end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_skynet-1.0.0 | lib/ruby_skynet/registry.rb |