module Brightbox::Config::Cache
Public Instance Methods
Source
# File lib/brightbox-cli/config/cache.rb, line 8 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
Source
# File lib/brightbox-cli/config/cache.rb, line 4 def cache_path File.join(config_directory, "cache") end