Module: EbisuConnection
- Defined in:
- lib/ebisu_connection.rb,
lib/ebisu_connection/config.rb,
lib/ebisu_connection/replica.rb,
lib/ebisu_connection/version.rb,
lib/ebisu_connection/load_balancer.rb,
lib/ebisu_connection/connection_manager.rb,
lib/ebisu_connection/greatest_common_divisor.rb
Defined Under Namespace
Classes: Config, ConnectionManager, GreatestCommonDivisor, LoadBalancer, Replica
Constant Summary
collapse
- VERSION =
"3.1.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.env ⇒ Object
13
14
15
|
# File 'lib/ebisu_connection.rb', line 13
def env
@env ||= defined?(Rails) && Rails.env || ENV["RAILS_ENV"] || ENV["RACK_ENV"]
end
|
Class Method Details
.replica_file=(file) ⇒ Object
9
10
11
|
# File 'lib/ebisu_connection.rb', line 9
def replica_file=(file)
Config.replica_file = file
end
|