Class: Ace::Support::Models::Atoms::CachePathResolver

Inherits:
Object
  • Object
show all
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

Class Method Details

.resolveString

Resolve the cache directory path

Returns:

  • (String)

    Full path to cache directory



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