Sha256: 1dd622c0bdc9f6d4d511c3640e66d7104db4d015a7dc2be3ae5d0bc5ae297331
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module CacheDirectoryHelpers BUILDPACK_PACKAGER_CACHE_DIR = File.join(ENV['HOME'], '.buildpack-packager', 'cache') def uri_to_cache_filename(uri) uri.gsub(/[\/:]/, '_') end def uri_to_cache_path(uri) File.join(BUILDPACK_PACKAGER_CACHE_DIR, uri_to_cache_filename(uri)) end def remove_from_cache_dir(uri) FileUtils.rm_f(uri_to_cache_path(uri)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildpack-packager-2.3.4 | spec/helpers/cache_directory_helpers.rb |