add comments
This commit is contained in:
parent
abdb758aa2
commit
1fda6f7b14
@ -1,4 +1,6 @@
|
|||||||
def password_file
|
def password_file
|
||||||
|
# Return password file path
|
||||||
|
|
||||||
begin
|
begin
|
||||||
file_path = "#{ENV["PMNG_PWD_FILE"]}"
|
file_path = "#{ENV["PMNG_PWD_FILE"]}"
|
||||||
file_path.to_s
|
file_path.to_s
|
||||||
@ -9,13 +11,15 @@ def password_file
|
|||||||
end
|
end
|
||||||
|
|
||||||
def input_timeout
|
def input_timeout
|
||||||
|
# Return user input timeout
|
||||||
|
|
||||||
user_input_timeout = 60
|
user_input_timeout = 60
|
||||||
|
|
||||||
begin
|
begin
|
||||||
user_input_timeout = "#{ENV["PMNG_TIMEOUT"]}"
|
user_input_timeout = "#{ENV["PMNG_TIMEOUT"]}"
|
||||||
user_input_timeout.to_i
|
user_input_timeout.to_i
|
||||||
rescue KeyError
|
rescue KeyError
|
||||||
user_input_timeout.to_i
|
user_input_timeout.to_i # return default 60s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user