Module: Dotsync::XDGBaseDirectory

Included in:
ConfigCache, PullActionConfig, VersionChecker
Defined in:
lib/dotsync/config/concerns/xdg_base_directory.rb

Overview

Instance Method Summary collapse

Instance Method Details

#xdg_bin_homeObject



18
19
20
# File 'lib/dotsync/config/concerns/xdg_base_directory.rb', line 18

def xdg_bin_home
  File.expand_path(ENV["XDG_BIN_HOME"] || "~/.local/bin")
end

#xdg_cache_homeObject



14
15
16
# File 'lib/dotsync/config/concerns/xdg_base_directory.rb', line 14

def xdg_cache_home
  File.expand_path(ENV["XDG_CACHE_HOME"] || "~/.cache")
end

#xdg_config_homeObject



10
11
12
# File 'lib/dotsync/config/concerns/xdg_base_directory.rb', line 10

def xdg_config_home
  File.expand_path(ENV["XDG_CONFIG_HOME"] || "~/.config")
end

#xdg_data_homeObject



6
7
8
# File 'lib/dotsync/config/concerns/xdg_base_directory.rb', line 6

def xdg_data_home
  File.expand_path(ENV["XDG_DATA_HOME"] || "~/.local/share")
end