Sha256: cade20cc074fe8fdfa72d4ccfd9a97d134d158a7521135aefcb45fe1149d1a4f
Contents?: true
Size: 675 Bytes
Versions: 29
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/filesystem_cache' require 'eac_ruby_utils/simple_cache' module Ehbrs module UserDirs class << self include ::EacRubyUtils::SimpleCache def application_id 'ehbrs-tools' end private def user_home_dir_uncached ::EacRubyUtils::FilesystemCache.new(ENV['HOME']) end def cache_uncached user_home_dir.child('.cache', application_id) end def config_uncached user_home_dir.child('.config', application_id) end def data_uncached user_home_dir.child('.local', 'share', application_id) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems