pmng/src/pmng/app_settings.cr

14 lines
311 B
Crystal
Raw Normal View History

2022-08-04 00:10:56 +03:00
def password_file
begin
file_path = "#{ENV["PMNG_PWD_FILE"]}"
file_path.to_s
rescue KeyError
file_path = "#{ENV["HOME"]}/.pwd.yml"
file_path.to_s
end
end
2022-07-31 01:40:30 +03:00
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
2022-08-04 00:10:56 +03:00
PASSWORD_FILE_PATH = password_file()
2022-07-31 01:40:30 +03:00
USER_INPUT_TIMEOUT = 60