#!/usr/bin/env ruby require 'logger' # Database information $database = { :host => 'localhost', :dbname => 'lcrdb', :user => 'lcrload', :pass => 'mysecret', } # This array is only used by the LCR table load process, lcr-import.rb # List each carrier for which data should be loaded. For this to work, a file # with the same name as the carrier must exist in sources/ and must provide # a class of the same name with the "getrates" method exposed. # Carriers are processed in order and old data is deleted from the database for # each carrier before new data is loaded. $carriers = [ 'Gafachi', 'VoIPJet', ] # Directory containing file staged for use with carrier classes # The actual file names are defined in the carrier classes. $datadir = 'data' # Per Logger documentation, this may be one of the constants: # Logger::UNKNOWN # Logger::FATAL # Logger::ERROR # Logger::WARN # Logger::INFO # Logger::DEBUG $loglevel = Logger::INFO # Supply a file or stream here, passed to the Logger constructor. $logfile = 'lcr.log'