module MongoSync::Configuration
Public Class Methods
parse(config_file)
click to toggle source
# File lib/mongo_sync/config.rb, line 5 def self.parse(config_file) config_file ||= File.join(Rails.root, 'config', 'mongo_sync.yml') if defined? Rails if config_file begin return YAML::load(IO.read(config_file)) rescue Errno::ENOENT raise FileNotFound end else raise FileNotFound end end