add comments
This commit is contained in:
parent
abdb758aa2
commit
1fda6f7b14
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user