Class: Ace::Support::Models::Atoms::CachePathResolver
- Inherits:
-
Object
- Object
- Ace::Support::Models::Atoms::CachePathResolver
- Defined in:
- lib/ace/support/models/atoms/cache_path_resolver.rb
Overview
Resolves the cache directory path following XDG conventions
Constant Summary collapse
- DEFAULT_CACHE_DIR =
"ace-models"
Class Method Summary collapse
-
.resolve ⇒ String
Resolve the cache directory path.
Class Method Details
.resolve ⇒ String
Resolve the cache directory path
14 15 16 17 |
# File 'lib/ace/support/models/atoms/cache_path_resolver.rb', line 14 def resolve base_dir = xdg_cache_home || default_cache_home File.join(base_dir, DEFAULT_CACHE_DIR) end |