settings = YAML.load_file(File.expand_path('../cheddar_getter.yml', __FILE__)) Mousetrap.authenticate settings['username'], settings['password'] Mousetrap.product_code = settings['product_code']