Sha256: c360056af34e211fd03cf08ae4b35d6b04a80a49c17352be5a05b6807de4f966
Contents?: true
Size: 520 Bytes
Versions: 12
Compression:
Stored size: 520 Bytes
Contents
module Brightbox module Config module Cache def cache_path if @cache_path @cache_path else @cache_path = File.join(config_directory, 'cache') unless File.exist? @cache_path begin FileUtils.mkpath @cache_path rescue Errno::EEXIST end end @cache_path end end def cache_id(cid) FileUtils.touch(File.join(cache_path, cid)) unless cid.nil? end end end end
Version data entries
12 entries across 12 versions & 1 rubygems