File: database_setup.rb

package info (click to toggle)
ruby-database-cleaner 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 640 kB
  • ctags: 462
  • sloc: ruby: 3,895; makefile: 9; sh: 4
file content (6 lines) | stat: -rw-r--r-- 115 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
require 'yaml'

def db_config
  config_path = 'db/config.yml'
  @db_config ||= YAML.load(IO.read(config_path))
end