ruby_vault 0.1.0.pre.4 → 0.1.0.pre.7

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: 4acec404ddce5a052368e45f94bfc2680d6abe076f791a595b5a4a0c912daa75
4
- data.tar.gz: 597d76b4adab3af5e998f16d83e43f0a9d103f9d85a12b00de6f63a1b8c82487
3
+ metadata.gz: ca248ce05992fd78bfeeaf8f920a7d20e2d978015638cd111efc77ef4f71d6bc
4
+ data.tar.gz: cbc864bfe23c85f0a34543eabcde4da02891ca82686cf9255bf493193e9659e4
5
5
  SHA512:
6
- metadata.gz: b4e537621c4d2a78bf36117e68c729529cb0bb156a8761acc9ee417a7978ed01e1895772badc3c6b8b76afbcf5aac57b7837763480e002acb4f176ce6ee37f19
7
- data.tar.gz: 28a4fe8456d6e1ac25e5e9bc3bb00971739e17a06a1caf167f521a233fc171e7c8a303186a9ab56c88dc494f8e160bdd4577495f24eaf472d962471d774846e5
6
+ metadata.gz: be4c2a85a51f35da99b8f47adf6cf4cc8ec4cc247a310f20a9967023f94d6d580f9c2b19844f2505d560033d548fa35b435873a8267325e9e8b073d02e9d1d1c
7
+ data.tar.gz: 8e57ac27941c240d6ac36794bed9d240836b550a8ed9a07271c155511fafd09724ea86846ef0e856aa4d8bba40a6f0711c89a4e6e6457b480367309d7cc6897c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.4)
4
+ ruby_vault (0.1.0.pre.7)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -115,7 +115,7 @@ GEM
115
115
  diff-lcs (>= 1.2.0, < 2.0)
116
116
  rspec-support (~> 3.11.0)
117
117
  rspec-support (3.11.0)
118
- rubocop (1.32.0)
118
+ rubocop (1.33.0)
119
119
  json (~> 2.3)
120
120
  parallel (~> 1.10)
121
121
  parser (>= 3.1.0.0)
@@ -16,6 +16,10 @@ module RubyVault
16
16
  -method
17
17
  ] + super
18
18
  end
19
+
20
+ def arguments(parameters)
21
+ [parameters[:auth]]
22
+ end
19
23
  end
20
24
  end
21
25
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'base'
4
+
5
+ module RubyVault
6
+ module Commands
7
+ class Write < Base
8
+ # @!visibility private
9
+ def subcommands
10
+ %w[write]
11
+ end
12
+
13
+ # @!visibility private
14
+ def options
15
+ %w[
16
+ address
17
+ ] + super
18
+ end
19
+
20
+ # @!visibility private
21
+ def arguments(parameters)
22
+ [parameters[:path]]
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'commands/login'
4
+ require_relative 'commands/write'
4
5
 
5
6
  module RubyVault
6
7
  module Commands
@@ -6,6 +6,7 @@ module RubyVault
6
6
  # string options
7
7
  %w[
8
8
  -method
9
+ -address
9
10
  ].map do |o|
10
11
  definition(name: o, option_type: :standard, value_type: :string)
11
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.4'
4
+ VERSION = '0.1.0.pre.7'
5
5
  end
data/lib/ruby_vault.rb CHANGED
@@ -26,6 +26,11 @@ module RubyVault
26
26
  parameters, invocation_options)
27
27
  end
28
28
 
29
+ def write(parameters = {}, invocation_options = {})
30
+ exec(RubyVault::Commands::Write,
31
+ parameters, invocation_options)
32
+ end
33
+
29
34
  private
30
35
 
31
36
  def exec(command_class, parameters, invocation_options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.4
4
+ version: 0.1.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -282,6 +282,7 @@ files:
282
282
  - lib/ruby_vault/commands.rb
283
283
  - lib/ruby_vault/commands/base.rb
284
284
  - lib/ruby_vault/commands/login.rb
285
+ - lib/ruby_vault/commands/write.rb
285
286
  - lib/ruby_vault/errors.rb
286
287
  - lib/ruby_vault/errors/execution_error.rb
287
288
  - lib/ruby_vault/options.rb