mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Use FILENAME
constant consistently
This commit is contained in:
parent
102e2834b6
commit
e481a8d139
1 changed files with 5 additions and 4 deletions
|
@ -25,12 +25,13 @@ class Ameba::Config
|
||||||
}
|
}
|
||||||
|
|
||||||
XDG_CONFIG_HOME = ENV.fetch("XDG_CONFIG_HOME", "~/.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",
|
Path[XDG_CONFIG_HOME] / "ameba/config.yml",
|
||||||
}
|
}
|
||||||
FILENAME = ".ameba.yml"
|
|
||||||
DEFAULT_PATH = Path[Dir.current] / FILENAME
|
|
||||||
|
|
||||||
DEFAULT_GLOBS = %w(
|
DEFAULT_GLOBS = %w(
|
||||||
**/*.cr
|
**/*.cr
|
||||||
|
|
Loading…
Reference in a new issue