lib/reptile/runner.rb in reptile-0.0.1 vs lib/reptile/runner.rb in reptile-0.0.4
- old
+ new
@@ -27,10 +27,10 @@
def self.slaves=(slaves)
slaves.each do |name, configs|
configs.delete('port')
configs.delete('host')
# With activeRecord, you have to connect to some DB, even if you are acting on the server...
- configs['database'] = 'information_schema'
+ configs['database'] = 'information_schema' unless configs['database']
# TODO: Delete these somewhere else
configs.delete('heartbeat')
configs.delete('replication_user')
end
@slaves = slaves
\ No newline at end of file