Sha256: 49284c8993e944c82d4471047fd25b084d30d1ec795f2c06305fb41e07e0523a
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
module ZK def self.spawn_zookeeper? !!ENV['SPAWN_ZOOKEEPER'] end def self.travis? !!ENV['TRAVIS'] end @test_port ||= spawn_zookeeper? ? 21811 : 2181 class << self attr_accessor :test_port end # argh, blah, this affects ZK.new everywhere (which is kind of the point, but # still gross) self.default_port = self.test_port end
Version data entries
5 entries across 5 versions & 1 rubygems