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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6148c9d6777fa0397f80e9f720edc1abe555050853f5215efc7c11cca4942da6
4
- data.tar.gz: 8e1f88079fb5b30c230ee8fac259a050bc29f3fbe30367c5220a817cec621efa
3
+ metadata.gz: ee0473c00d85aa152af87e74dec499b647dca864b0b0308e12b493a71a21e7e8
4
+ data.tar.gz: 72d4b0dbb5e9af2166a1e8f7956ad839b69fee9e80a4d9ca48acec1f9a8ab60b
5
5
  SHA512:
6
- metadata.gz: 531d74fec2d9c2689b67085ff2e7c18533d7f6c32cdf0dc64fac7acec08af639c21c264f6fa912016583c7503789100a23415bd28510c3138b5cc99b0d9db7dd
7
- data.tar.gz: a27984789650f28c86d4e1c6e767f6413b76ca18463b256ca3646488c1a9cb17147f4b923542106dee150df7588fcf797012a76bf2c09876cfffe083795a0277
6
+ metadata.gz: 42f57f5a9f511aa1cd370c84339bc602e1a321ccde30892fe71582aa56fc6205264d65ab4e2fbc58cb53bc818c4a1e4ce854c0811a2adf6e8d8d8d0b77bc3b99
7
+ data.tar.gz: c4aaf6261d3621d9b4bfba652ffc34b458e2e2b1834ecf794f0a2757d725ed0754d5f9a55e0ffb2492cc84c9c7200d092026ea98082335e848caa57ea8ada1c7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.9)
4
+ ruby_vault (0.1.0.pre.12)
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,8 +12,7 @@ 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
@@ -2,14 +2,44 @@
2
2
 
3
3
  module RubyVault
4
4
  module Options
5
- DEFINITIONS = [
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[-address].freeze
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.9'
4
+ VERSION = '0.1.0.pre.12'
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.9
4
+ version: 0.1.0.pre.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers