# encoding: utf-8 module LocalPac class LocalStorage private attr_reader :storage, :null_file public def initialize(storage = GitRepository.new(LocalPac.config.local_storage), null_file = NullPacFile.new ) @storage = storage @null_file = null_file end def find(name) name = name.sub(/.pac$/, '').camelize.downcase.to_sym LocalPac.ui_logger.debug "Using the following name to find pac file: \":#{name}\"." storage[name] || null_file end end end