add comments

This commit is contained in:
Alexander Popov 2022-08-07 21:29:12 +03:00
parent abdb758aa2
commit 1fda6f7b14
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,6 @@
def password_file
# Return password file path
begin
file_path = "#{ENV["PMNG_PWD_FILE"]}"
file_path.to_s
@ -9,13 +11,15 @@ def password_file
end
def input_timeout
# Return user input timeout
user_input_timeout = 60
begin
user_input_timeout = "#{ENV["PMNG_TIMEOUT"]}"
user_input_timeout.to_i
rescue KeyError
user_input_timeout.to_i
user_input_timeout.to_i # return default 60s
end
end