ruby_vault 0.1.0.pre.10 → 0.1.0.pre.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c75d41bc2ac065aa831462f3b651b1eb201db0620b3f284df11a9314f617d30b
4
- data.tar.gz: 95f48c3de6961c6153fed0ae8aeb903c9bddbf746605372550082c7da598a1a0
3
+ metadata.gz: d40a8d757f596aa8fb8c1900e1d317ded67098c0afae11ba27ab2c90c9fb2625
4
+ data.tar.gz: 83f4c230fb052fd4d8152e8dd2f741d2675d4f8bf397ea6561dbaef45f6bc7de
5
5
  SHA512:
6
- metadata.gz: 9858f8bbee18b9b15bb074dd607f70462fbe7daf20e77aaf568a4ec87a4d31a8f084d68bc7e5ecbc765934a83316a36ac1187f4695dce4c40ed1c1da9141f500
7
- data.tar.gz: 248d5b79ef60cd562f578763dc246e2b767b5e254293d4ee76c8fff7b43561840ca25b343191642572f33464d9f37e48f5b5568c6d20fea740806ff6fb17062e
6
+ metadata.gz: f04805293ea5398a68b474db7672c1e4129f8be9e215e48e036290eaca0ee3f413527a32e69c799e9ad26599b8841ba6038108f863e95a88f13db6e197fb19f3
7
+ data.tar.gz: 3982035d0d513e80ce2957cc6bb075f94d8aad86caf7bf93dab0b6548d7111fa429bca29fac6be44758880d980dcd26f409c28213444e5e16c66b5fdfc1cbe48
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.10)
4
+ ruby_vault (0.1.0.pre.13)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -12,9 +12,7 @@ module RubyVault
12
12
 
13
13
  # @!visibility private
14
14
  def options
15
- super
16
- .concat(Options::Sets::HTTP_OPTIONS)
17
- .concat(['-method'])
15
+ super + Options::Sets::HTTP_OPTIONS + ['-method']
18
16
  end
19
17
 
20
18
  def arguments(parameters)
@@ -12,13 +12,12 @@ module RubyVault
12
12
 
13
13
  # @!visibility private
14
14
  def options
15
- super
16
- .concat(Options::Sets::HTTP_OPTIONS)
15
+ super + Options::Sets::HTTP_OPTIONS
17
16
  end
18
17
 
19
18
  # @!visibility private
20
19
  def arguments(parameters)
21
- [parameters[:path]]
20
+ [parameters[:path], parameters[:data]].flatten
22
21
  end
23
22
  end
24
23
  end
@@ -2,14 +2,54 @@
2
2
 
3
3
  module RubyVault
4
4
  module Options
5
- DEFINITIONS = [
5
+ HTTP_DEFINITIONS = [
6
+ # key-value repeatable options
7
+ %w[-header].map do |o|
8
+ definition(
9
+ name: o, option_type: :standard, value_type: :string,
10
+ repeatable: true,
11
+ override_keys: { singular: false, plural: :headers }
12
+ )
13
+ end,
14
+
6
15
  # string options
7
16
  %w[
8
- -method
9
17
  -address
18
+ -agent-address
19
+ -ca-cert
20
+ -ca-path
21
+ -client-cert
22
+ -client-key
23
+ -mfa
24
+ -namespace
25
+ -tls-server-name
26
+ -unlock-key
27
+ -wrap-ttl
28
+ ].map do |o|
29
+ definition(name: o, option_type: :standard, value_type: :string)
30
+ end,
31
+
32
+ # flag options
33
+ %w[
34
+ -non-interactive
35
+ -output-curl-string
36
+ -output-policy
37
+ -policy-override
38
+ -tls-skip-verify
39
+ ].map do |o|
40
+ definition(name: o, option_type: :flag, value_type: :boolean)
41
+ end
42
+ ].flatten.freeze
43
+
44
+ OTHER_DEFINITIONS = [
45
+ # string options
46
+ %w[
47
+ -method
10
48
  ].map do |o|
11
49
  definition(name: o, option_type: :standard, value_type: :string)
12
50
  end
13
51
  ].flatten.freeze
52
+
53
+ DEFINITIONS = (HTTP_DEFINITIONS + OTHER_DEFINITIONS).flatten.freeze
14
54
  end
15
55
  end
@@ -3,7 +3,25 @@
3
3
  module RubyVault
4
4
  module Options
5
5
  module Sets
6
- HTTP_OPTIONS = %w[-address].freeze
6
+ HTTP_OPTIONS = %w[
7
+ -address
8
+ -agent-address
9
+ -ca-cert
10
+ -ca-path
11
+ -client-cert
12
+ -client-key
13
+ -header
14
+ -mfa
15
+ -namespace
16
+ -non-interactive
17
+ -output-curl-string
18
+ -output-policy
19
+ -policy-override
20
+ -tls-server-name
21
+ -tls-skip-verify
22
+ -unlock-key
23
+ -wrap-ttl
24
+ ].freeze
7
25
  end
8
26
  end
9
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.10'
4
+ VERSION = '0.1.0.pre.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.10
4
+ version: 0.1.0.pre.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers