ruby_vault 0.1.0.pre.13 → 0.1.0.pre.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d40a8d757f596aa8fb8c1900e1d317ded67098c0afae11ba27ab2c90c9fb2625
4
- data.tar.gz: 83f4c230fb052fd4d8152e8dd2f741d2675d4f8bf397ea6561dbaef45f6bc7de
3
+ metadata.gz: b17ec9c83acf4fd34e008f7dad361e59775eee24902a57cba7e94f9bb57821b2
4
+ data.tar.gz: 83672206d074f7c0ed9b9fb183104a95910247c56378f9f822fdefe06b20ef34
5
5
  SHA512:
6
- metadata.gz: f04805293ea5398a68b474db7672c1e4129f8be9e215e48e036290eaca0ee3f413527a32e69c799e9ad26599b8841ba6038108f863e95a88f13db6e197fb19f3
7
- data.tar.gz: 3982035d0d513e80ce2957cc6bb075f94d8aad86caf7bf93dab0b6548d7111fa429bca29fac6be44758880d980dcd26f409c28213444e5e16c66b5fdfc1cbe48
6
+ metadata.gz: 552e66742c3824a05f9f71d9026c2e020978a176873399e1e0c748f197257da72e87a230b98cef9d3afd186d4e52f13cd70b5f8c860eb6d256c69ba539556667
7
+ data.tar.gz: d5ca4effda41bf30170a06ddadc8f528b870761734768216db59411b26b05ba4c5356880971ab02f7c8b28f129f160a8a0a38894b7d76b34544bc83e8b810e8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.13)
4
+ ruby_vault (0.1.0.pre.14)
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,7 +12,9 @@ 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
16
18
  end
17
19
 
18
20
  # @!visibility private
@@ -26,7 +26,8 @@ module RubyVault
26
26
  -unlock-key
27
27
  -wrap-ttl
28
28
  ].map do |o|
29
- definition(name: o, option_type: :standard, value_type: :string)
29
+ definition(name: o, option_type: :standard,
30
+ value_type: :string)
30
31
  end,
31
32
 
32
33
  # flag options
@@ -37,7 +38,18 @@ module RubyVault
37
38
  -policy-override
38
39
  -tls-skip-verify
39
40
  ].map do |o|
40
- 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)
41
53
  end
42
54
  ].flatten.freeze
43
55
 
@@ -45,11 +57,25 @@ module RubyVault
45
57
  # string options
46
58
  %w[
47
59
  -method
60
+ -path
48
61
  ].map do |o|
49
62
  definition(name: o, option_type: :standard, value_type: :string)
63
+ end,
64
+
65
+ # flag options
66
+ %w[
67
+ -no-print
68
+ -no-store
69
+ -token-only
70
+ ].map do |o|
71
+ definition(name: o, option_type: :flag, value_type: :boolean)
50
72
  end
51
73
  ].flatten.freeze
52
74
 
53
- DEFINITIONS = (HTTP_DEFINITIONS + OTHER_DEFINITIONS).flatten.freeze
75
+ DEFINITIONS = (
76
+ HTTP_DEFINITIONS +
77
+ OUTPUT_DEFINITIONS +
78
+ OTHER_DEFINITIONS
79
+ ).flatten.freeze
54
80
  end
55
81
  end
@@ -22,6 +22,11 @@ module RubyVault
22
22
  -unlock-key
23
23
  -wrap-ttl
24
24
  ].freeze
25
+
26
+ OUTPUT_OPTIONS = %w[
27
+ -field
28
+ -format
29
+ ].freeze
25
30
  end
26
31
  end
27
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.13'
4
+ VERSION = '0.1.0.pre.14'
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.13
4
+ version: 0.1.0.pre.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers