def initialize db_config_file, dump=nil
config = YAML.load_file(db_config_file)
if !config.has_key?("production")
STDERR.puts "There's no configuration for the production environment"
end
@adapter = config["production"]["adapter"]
@user = config["production"]["username"]
@password = config["production"]["password"]
@dbname = config["production"]["adapter"]
@dump = dump
filename = File.expand_path("../../adapters/#{@adapter}.yml", __FILE__)
raise "There's no adapter for #{@adapter}" if !File.exists?(filename)
@adapter_config = YAML.load_file(filename)
end