Sha256: e452314562af7be609d9099363d70594474cff35ed3e32c5e8e7f928a9567d99
Contents?: true
Size: 727 Bytes
Versions: 2
Compression:
Stored size: 727 Bytes
Contents
require "fresh_connection" module EbisuConnection autoload :ConfFile, 'ebisu_connection/conf_file' autoload :ConnectionManager, 'ebisu_connection/connection_manager' autoload :SlaveGroup, 'ebisu_connection/slave_group' autoload :Slave, 'ebisu_connection/slave' autoload :GreatestCommonDivisor, 'ebisu_connection/greatest_common_divisor' class << self attr_writer :env def slaves_file=(file) ConfFile.slaves_file = file end def check_interval=(interval) ConfFile.check_interval = interval end def env @env ||= defined?(Rails) && Rails.env || ENV["RAILS_ENV"] || ENV["RACK_ENV"] end end end FreshConnection.connection_manager = EbisuConnection::ConnectionManager
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ebisu_connection-2.1.0 | lib/ebisu_connection.rb |
ebisu_connection-2.0.0 | lib/ebisu_connection.rb |