Sha256: c1e80b6510c3691e296de2ce926b8a465b5dc7977941f89e1d40ba62ae2a2863
Contents?: true
Size: 541 Bytes
Versions: 7
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 module LocalPac class LocalStorage private attr_reader :storage public def initialize(storage = GitStorage.new(LocalPac.config.local_storage)) @storage = storage 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}\"." file = storage[name] LocalPac.ui_logger.debug "Returning the following file: \"#{file.path || 'not found' }\"." file end end end
Version data entries
7 entries across 7 versions & 1 rubygems