Class: EbisuConnection::ConfFile
- Inherits:
-
Object
- Object
- EbisuConnection::ConfFile
- Defined in:
- lib/ebisu_connection/conf_file.rb
Class Attribute Summary collapse
-
.replica_file ⇒ Object
writeonly
Sets the attribute replica_file.
Class Method Summary collapse
Class Attribute Details
.replica_file=(value) ⇒ Object
Sets the attribute replica_file
7 8 9 |
# File 'lib/ebisu_connection/conf_file.rb', line 7 def replica_file=(value) @replica_file = value end |
Class Method Details
.replica_conf(spec_name) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ebisu_connection/conf_file.rb', line 17 def replica_conf(spec_name) return config unless config.is_a?(Hash) c = config[spec_name] return c if c if spec_name == "replica" && config.key?("slave") ActiveSupport::Deprecation.warn( "'slave' in replica.yml is deprecated and will ignored from version 2.5.0. use 'replica' insted." ) c = config["slave"] end c || config end |
.slaves_file=(file) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ebisu_connection/conf_file.rb', line 9 def slaves_file=(file) ActiveSupport::Deprecation.warn( "'slaves_file=' is deprecated and will removed from version 2.5.0. use 'replica_file=' instead." ) self.replica_file = file end |