<% PASSWORD_FILE = File.join(RAILS_ROOT, '..', '..', 'shared', 'config', 'dbpassword') %> development: adapter: mysql database: opensprints_stats_development username: root password: password host: localhost encoding: utf8 test: &TEST adapter: mysql database: opensprints_stats_test username: root password: password host: localhost encoding: utf8 staging: adapter: mysql database: opensprints_stats_staging username: CHANGEME password: <%= File.read(PASSWORD_FILE).chomp if File.readable? PASSWORD_FILE %> host: localhost encoding: utf8 socket: /var/lib/mysql/mysql.sock production: adapter: mysql host: mysql.ternimal.com username: efarrar password: goh123 database: opensprints_stats_production cucumber: <<: *TEST