Class: BuildpackSupport::Cache::ApplicationCache
- Inherits:
-
DownloadCache
- Object
- DownloadCache
- BuildpackSupport::Cache::ApplicationCache
- Defined in:
- lib/buildpack_support/cache/application_cache.rb
Overview
An extension of DownloadCache that is configured to use the application cache. The application cache location is defined by the second argument (ARGV[1]
) to the compile
script.
WARNING: This cache should only by used by code run by the compile
script
Constant Summary
Constants inherited from DownloadCache
DownloadCache::CACHED_RESOURCES_DIRECTORY
Instance Method Summary collapse
-
#initialize ⇒ ApplicationCache
constructor
Creates an instance that is configured to use the application cache.
Methods inherited from DownloadCache
Methods included from DirectoryFinder
Constructor Details
#initialize ⇒ ApplicationCache
Creates an instance that is configured to use the application cache. The application cache location is defined by the second argument (ARGV[1]
) to the compile
script.
32 33 34 35 36 |
# File 'lib/buildpack_support/cache/application_cache.rb', line 32 def initialize application_cache_directory = ARGV[1] fail 'Application cache directory is undefined' if application_cache_directory.nil? super(Pathname.new(application_cache_directory), CACHED_RESOURCES_DIRECTORY) end |