Sha256: 0a02674658d32847e494727a2e9f6c1a40290b5a84012a57e3d534bd0d57a271
Contents?: true
Size: 428 Bytes
Versions: 18
Compression:
Stored size: 428 Bytes
Contents
module Brightbox module Config module Cache def cache_path File.join(config_directory, "cache") end def cache_id(cid) return if cid.nil? unless File.exist?(cache_path) begin FileUtils.mkpath(cache_path) rescue Errno::EEXIST end end FileUtils.touch(File.join(cache_path, cid)) unless cid.nil? end end end end
Version data entries
18 entries across 18 versions & 1 rubygems