ruby_vault 0.1.0.pre.4 → 0.1.0.pre.5

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: 4acec404ddce5a052368e45f94bfc2680d6abe076f791a595b5a4a0c912daa75
4
- data.tar.gz: 597d76b4adab3af5e998f16d83e43f0a9d103f9d85a12b00de6f63a1b8c82487
3
+ metadata.gz: fb03f600d2c47bd04285941594a82ef4f3e0db9b8fc7e5092326f96fbaca5e9e
4
+ data.tar.gz: 0b83a87b3ab6690737170e14aab376e83ef519df45d25c75c49fc86789b85be9
5
5
  SHA512:
6
- metadata.gz: b4e537621c4d2a78bf36117e68c729529cb0bb156a8761acc9ee417a7978ed01e1895772badc3c6b8b76afbcf5aac57b7837763480e002acb4f176ce6ee37f19
7
- data.tar.gz: 28a4fe8456d6e1ac25e5e9bc3bb00971739e17a06a1caf167f521a233fc171e7c8a303186a9ab56c88dc494f8e160bdd4577495f24eaf472d962471d774846e5
6
+ metadata.gz: 120ebda0f8284dfbd8fb8995554953725022f60aa8ccb114e060bfaca71c836e19907c2954f15f41876c9ea8ecd51bb22910aecf9d8472025850a7c383fbad78
7
+ data.tar.gz: dd6e94ffb5afeeffba98af0b8df0e9c992c772ea62b5524032862f9249c74959767d3985d37da1354116f1ea7243963878b2e3d824c457521f70ae3be8f69613
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.5)
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)
@@ -0,0 +1,24 @@
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[] + super
16
+ end
17
+
18
+ # @!visibility private
19
+ def arguments(parameters)
20
+ [parameters[:path]]
21
+ end
22
+ end
23
+ end
24
+ 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
@@ -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.5'
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.5
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