enfcli 5.0.2 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/enfcli.rb +4 -15
- data/lib/enfcli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f52dc569750edcf380a6f64241fd985decde7de862ca0700e00b8a411548a4b
|
4
|
+
data.tar.gz: c3bd0fdbbf27ccc877e82c4ac663118b1710dcf2ccfdeffe2abe91a7930d44fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ced4fe396b61814d1d4b6bd377cf2d913899c8ddf78041e97897f17de7adb526f1e9f1cab24de0443adedda7975ede9545ea720dc9a198cddfa00c6a4c7e257
|
7
|
+
data.tar.gz: 375a32dd626c0ccf6b17ca876598791883c6f1fd41a26f9fdc66432a5a750607a960a463ed8eae51c772407cfb15fd9c258c14b69f191a9994840f0ceed1dfc4
|
data/Gemfile.lock
CHANGED
data/lib/enfcli.rb
CHANGED
@@ -22,6 +22,7 @@ require "ipaddr"
|
|
22
22
|
require "clipboard"
|
23
23
|
require "json"
|
24
24
|
require "securerandom"
|
25
|
+
require "io/console"
|
25
26
|
|
26
27
|
require "rubygems/commands/update_command"
|
27
28
|
require "rubygems/commands/search_command"
|
@@ -111,21 +112,9 @@ module EnfCli
|
|
111
112
|
end
|
112
113
|
|
113
114
|
def self.ask_password(prompt = nil)
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
# We hide the entered characters before to ask for the password
|
118
|
-
system "stty -echo"
|
119
|
-
password = $stdin.gets.chomp
|
120
|
-
system "stty echo"
|
121
|
-
puts ""
|
122
|
-
return password
|
123
|
-
rescue NoMethodError, Interrupt
|
124
|
-
# When the process is exited, we display the characters again
|
125
|
-
# And we exit
|
126
|
-
system "stty echo"
|
127
|
-
exit
|
128
|
-
end
|
115
|
+
prompt ||= "Enter Password: "
|
116
|
+
password = IO::console.getpass prompt
|
117
|
+
return password
|
129
118
|
end
|
130
119
|
|
131
120
|
def self.generate_ec_cert(key, ipv6)
|
data/lib/enfcli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enfcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Venkatakumar Srinivasan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|