Use FILENAME constant consistently

This commit is contained in:
Sijawusz Pur Rahnama 2023-03-06 20:42:58 +01:00
parent 102e2834b6
commit e481a8d139

View file

@ -25,12 +25,13 @@ class Ameba::Config
}
XDG_CONFIG_HOME = ENV.fetch("XDG_CONFIG_HOME", "~/.config")
DEFAULT_PATHS = {
Path["~/.ameba.yml"],
FILENAME = ".ameba.yml"
DEFAULT_PATH = Path[Dir.current] / FILENAME
DEFAULT_PATHS = {
Path["~"] / FILENAME,
Path[XDG_CONFIG_HOME] / "ameba/config.yml",
}
FILENAME = ".ameba.yml"
DEFAULT_PATH = Path[Dir.current] / FILENAME
DEFAULT_GLOBS = %w(
**/*.cr