ruby_vault 0.1.0.pre.9 → 0.1.0.pre.12
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/ruby_vault/commands/login.rb +1 -3
- data/lib/ruby_vault/commands/write.rb +1 -2
- data/lib/ruby_vault/options/definitions.rb +32 -2
- data/lib/ruby_vault/options/sets.rb +17 -1
- data/lib/ruby_vault/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: ee0473c00d85aa152af87e74dec499b647dca864b0b0308e12b493a71a21e7e8
|
4
|
+
data.tar.gz: 72d4b0dbb5e9af2166a1e8f7956ad839b69fee9e80a4d9ca48acec1f9a8ab60b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f57f5a9f511aa1cd370c84339bc602e1a321ccde30892fe71582aa56fc6205264d65ab4e2fbc58cb53bc818c4a1e4ce854c0811a2adf6e8d8d8d0b77bc3b99
|
7
|
+
data.tar.gz: c4aaf6261d3621d9b4bfba652ffc34b458e2e2b1834ecf794f0a2757d725ed0754d5f9a55e0ffb2492cc84c9c7200d092026ea98082335e848caa57ea8ada1c7
|
data/Gemfile.lock
CHANGED
@@ -2,14 +2,44 @@
|
|
2
2
|
|
3
3
|
module RubyVault
|
4
4
|
module Options
|
5
|
-
|
5
|
+
HTTP_DEFINITIONS = [
|
6
6
|
# string options
|
7
7
|
%w[
|
8
|
-
-method
|
9
8
|
-address
|
9
|
+
-agent-address
|
10
|
+
-ca-cert
|
11
|
+
-ca-path
|
12
|
+
-client-cert
|
13
|
+
-client-key
|
14
|
+
-mfa
|
15
|
+
-namespace
|
16
|
+
-tls-server-name
|
17
|
+
-unlock-key
|
10
18
|
].map do |o|
|
11
19
|
definition(name: o, option_type: :standard, value_type: :string)
|
20
|
+
end,
|
21
|
+
|
22
|
+
# flag options
|
23
|
+
%w[
|
24
|
+
-non-interactive
|
25
|
+
-output-curl-string
|
26
|
+
-output-policy
|
27
|
+
-policy-override
|
28
|
+
-tls-skip-verify
|
29
|
+
].map do |o|
|
30
|
+
definition(name: o, option_type: :flag, value_type: :boolean)
|
12
31
|
end
|
13
32
|
].flatten.freeze
|
33
|
+
|
34
|
+
OTHER_DEFINITIONS = [
|
35
|
+
# string options
|
36
|
+
%w[
|
37
|
+
-method
|
38
|
+
].map do |o|
|
39
|
+
definition(name: o, option_type: :standard, value_type: :string)
|
40
|
+
end
|
41
|
+
].flatten.freeze
|
42
|
+
|
43
|
+
DEFINITIONS = (HTTP_DEFINITIONS + OTHER_DEFINITIONS).flatten.freeze
|
14
44
|
end
|
15
45
|
end
|
@@ -3,7 +3,23 @@
|
|
3
3
|
module RubyVault
|
4
4
|
module Options
|
5
5
|
module Sets
|
6
|
-
HTTP_OPTIONS = %w[
|
6
|
+
HTTP_OPTIONS = %w[
|
7
|
+
-address
|
8
|
+
-agent-address
|
9
|
+
-ca-cert
|
10
|
+
-ca-path
|
11
|
+
-client-cert
|
12
|
+
-client-key
|
13
|
+
-mfa
|
14
|
+
-namespace
|
15
|
+
-non-interactive
|
16
|
+
-output-curl-string
|
17
|
+
-output-policy
|
18
|
+
-policy-override
|
19
|
+
-tls-server-name
|
20
|
+
-tls-skip-verify
|
21
|
+
-unlock-key
|
22
|
+
].freeze
|
7
23
|
end
|
8
24
|
end
|
9
25
|
end
|
data/lib/ruby_vault/version.rb
CHANGED