ruby_vault 0.1.0.pre.4 → 0.1.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/ruby_vault/commands/write.rb +24 -0
- data/lib/ruby_vault/commands.rb +1 -0
- data/lib/ruby_vault/version.rb +1 -1
- data/lib/ruby_vault.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb03f600d2c47bd04285941594a82ef4f3e0db9b8fc7e5092326f96fbaca5e9e
|
4
|
+
data.tar.gz: 0b83a87b3ab6690737170e14aab376e83ef519df45d25c75c49fc86789b85be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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.
|
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
|
data/lib/ruby_vault/commands.rb
CHANGED
data/lib/ruby_vault/version.rb
CHANGED
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
|
+
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-
|
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
|