ruby_vault 0.1.0.pre.12 → 0.1.0.pre.15

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: ee0473c00d85aa152af87e74dec499b647dca864b0b0308e12b493a71a21e7e8
4
- data.tar.gz: 72d4b0dbb5e9af2166a1e8f7956ad839b69fee9e80a4d9ca48acec1f9a8ab60b
3
+ metadata.gz: bddf14033309fa193d2c3698c85cc7e6ea9f9c50782f1d41a4a6bf08c076f11d
4
+ data.tar.gz: c97613de592cc26b0fbd46b10f28dd54f44d9488be21ff1a15e9ec97a9083757
5
5
  SHA512:
6
- metadata.gz: 42f57f5a9f511aa1cd370c84339bc602e1a321ccde30892fe71582aa56fc6205264d65ab4e2fbc58cb53bc818c4a1e4ce854c0811a2adf6e8d8d8d0b77bc3b99
7
- data.tar.gz: c4aaf6261d3621d9b4bfba652ffc34b458e2e2b1834ecf794f0a2757d725ed0754d5f9a55e0ffb2492cc84c9c7200d092026ea98082335e848caa57ea8ada1c7
6
+ metadata.gz: 1efad990fd49906c92ac0f40199a878d9f28af6ad0d33658b223d3fd654bec8c319016940eaa1d82139ee7085a2628246ec6f522aba6cffe00e22bf75a971c08
7
+ data.tar.gz: 36c90412e0722cd2fa3bd81e9fc4e0ed6ceea4dc43ef9d61f7cb22728be97d1b8f5e81c18bd501a965ff38b239f4689653d4b31b6567484583135d7630cee0f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.12)
4
+ ruby_vault (0.1.0.pre.15)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -12,7 +12,16 @@ module RubyVault
12
12
 
13
13
  # @!visibility private
14
14
  def options
15
- super + Options::Sets::HTTP_OPTIONS + ['-method']
15
+ super +
16
+ Options::Sets::HTTP_OPTIONS +
17
+ Options::Sets::OUTPUT_OPTIONS +
18
+ %w[
19
+ -method
20
+ -no-print
21
+ -no-store
22
+ -path
23
+ -token-only
24
+ ]
16
25
  end
17
26
 
18
27
  def arguments(parameters)
@@ -12,12 +12,16 @@ module RubyVault
12
12
 
13
13
  # @!visibility private
14
14
  def options
15
- super + Options::Sets::HTTP_OPTIONS
15
+ super +
16
+ Options::Sets::HTTP_OPTIONS +
17
+ Options::Sets::OUTPUT_OPTIONS + %w[
18
+ -force
19
+ ]
16
20
  end
17
21
 
18
22
  # @!visibility private
19
23
  def arguments(parameters)
20
- [parameters[:path]]
24
+ [parameters[:path], parameters[:data]].flatten
21
25
  end
22
26
  end
23
27
  end
@@ -3,6 +3,15 @@
3
3
  module RubyVault
4
4
  module Options
5
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
17
  -address
@@ -15,8 +24,10 @@ module RubyVault
15
24
  -namespace
16
25
  -tls-server-name
17
26
  -unlock-key
27
+ -wrap-ttl
18
28
  ].map do |o|
19
- definition(name: o, option_type: :standard, value_type: :string)
29
+ definition(name: o, option_type: :standard,
30
+ value_type: :string)
20
31
  end,
21
32
 
22
33
  # flag options
@@ -27,7 +38,18 @@ module RubyVault
27
38
  -policy-override
28
39
  -tls-skip-verify
29
40
  ].map do |o|
30
- definition(name: o, option_type: :flag, value_type: :boolean)
41
+ definition(name: o, option_type: :flag,
42
+ value_type: :boolean)
43
+ end
44
+ ].flatten.freeze
45
+
46
+ OUTPUT_DEFINITIONS = [
47
+ # string options
48
+ %w[
49
+ -field
50
+ -format
51
+ ].map do |o|
52
+ definition(name: o, option_type: :standard, value_type: :string)
31
53
  end
32
54
  ].flatten.freeze
33
55
 
@@ -35,11 +57,26 @@ module RubyVault
35
57
  # string options
36
58
  %w[
37
59
  -method
60
+ -path
38
61
  ].map do |o|
39
62
  definition(name: o, option_type: :standard, value_type: :string)
63
+ end,
64
+
65
+ # flag options
66
+ %w[
67
+ -force
68
+ -no-print
69
+ -no-store
70
+ -token-only
71
+ ].map do |o|
72
+ definition(name: o, option_type: :flag, value_type: :boolean)
40
73
  end
41
74
  ].flatten.freeze
42
75
 
43
- DEFINITIONS = (HTTP_DEFINITIONS + OTHER_DEFINITIONS).flatten.freeze
76
+ DEFINITIONS = (
77
+ HTTP_DEFINITIONS +
78
+ OUTPUT_DEFINITIONS +
79
+ OTHER_DEFINITIONS
80
+ ).flatten.freeze
44
81
  end
45
82
  end
@@ -10,6 +10,7 @@ module RubyVault
10
10
  -ca-path
11
11
  -client-cert
12
12
  -client-key
13
+ -header
13
14
  -mfa
14
15
  -namespace
15
16
  -non-interactive
@@ -19,6 +20,12 @@ module RubyVault
19
20
  -tls-server-name
20
21
  -tls-skip-verify
21
22
  -unlock-key
23
+ -wrap-ttl
24
+ ].freeze
25
+
26
+ OUTPUT_OPTIONS = %w[
27
+ -field
28
+ -format
22
29
  ].freeze
23
30
  end
24
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.12'
4
+ VERSION = '0.1.0.pre.15'
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.12
4
+ version: 0.1.0.pre.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers