rake_easy_rsa 0.2.0.pre.9 → 0.2.0.pre.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_easy_rsa/tasks/certificate/revoke.rb +7 -3
- data/lib/rake_easy_rsa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6ec4947a55dc8358fcebe23c1032818d053f1f6ae12c8b8f213d20390c935d
|
4
|
+
data.tar.gz: 031f5dd35591d3de6fe1eecbbbe3f57b09ec77fbd5a037de81d826e61de867fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63dff6eca2a44dd03a4b31153f687984d991369fdcd2ca9fcfb09197fe0eaac2e2a9fd0fc8b7cd1d36da2ffb40e78070fb18bcd7a2b2867be89cf125a1eedaf
|
7
|
+
data.tar.gz: 2473ed256dbb8162435e0c1987bc6072446f39a7755c7a3d78ae5e2c98cf9ba4caafe47c00ebef529acde3b271b920a3b899a024d35c4160315019d36dc0ecc0
|
data/Gemfile.lock
CHANGED
@@ -12,15 +12,19 @@ module RakeEasyRSA
|
|
12
12
|
include Mixins::SSLParameters
|
13
13
|
|
14
14
|
default_name :revoke
|
15
|
-
default_argument_names [:filename_base]
|
16
|
-
default_description
|
15
|
+
default_argument_names [:filename_base, :reason]
|
16
|
+
default_description 'Revoke a certificate of the PKI'
|
17
|
+
|
18
|
+
parameter :reason, default: 'unspecified'
|
17
19
|
|
18
20
|
action do |t, args|
|
19
21
|
puts "Revoking certificate '#{args.filename_base}'... "
|
22
|
+
reason = args.reason || t.reason
|
20
23
|
RubyEasyRSA.revoke(
|
21
24
|
t.parameter_values.merge(
|
25
|
+
reason: reason,
|
22
26
|
filename_base: args.filename_base))
|
23
|
-
puts
|
27
|
+
puts 'Done.'
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|