"1.0.0"
"config/database.yml"
"config/database.yml.deeby"
7 8 9 10 11 12 13
# File 'lib/deeby.rb', line 7 def self.swap engine temp = "config/database.#{engine}.yml" cp ACTIVE, BACKUP cp temp, ACTIVE at_exit { cp BACKUP, ACTIVE ; rm BACKUP } end