user input timeout env variable
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
- ℹ️ - Information
|
- ℹ️ - Information
|
||||||
- ♻️ - Edited
|
- ♻️ - Edited
|
||||||
|
|
||||||
|
## 0.2.7 - [00/08/2022]
|
||||||
|
- ➕ - Added environment variable for custom input timeout
|
||||||
|
|
||||||
## 0.2.6 - [03/08/2022]
|
## 0.2.6 - [03/08/2022]
|
||||||
- ➕ - Added environment variable for custom password file path
|
- ➕ - Added environment variable for custom password file path
|
||||||
- ➕ - Added version in to ASCII logo
|
- ➕ - Added version in to ASCII logo
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: pmng
|
name: pmng
|
||||||
version: 0.2.6
|
version: 0.2.7
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Alexander Popov <iiiypuk@iiiypuk.me>
|
- Alexander Popov <iiiypuk@iiiypuk.me>
|
||||||
|
|||||||
@@ -8,6 +8,17 @@ def password_file
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def 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
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
|
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
|
||||||
PASSWORD_FILE_PATH = password_file()
|
PASSWORD_FILE_PATH = password_file()
|
||||||
USER_INPUT_TIMEOUT = 60
|
USER_INPUT_TIMEOUT = input_timeout()
|
||||||
|
|||||||
Reference in New Issue
Block a user