rake_vault 0.1.0.pre.10 → 0.1.0.pre.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_vault/tasks/app_role_auth.rb +3 -1
- data/lib/rake_vault/version.rb +1 -1
- data/lib/rake_vault.rb +17 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9824e1b8c336fa453d4ae6284e5004eac67aaf593d237d8ec426a760faee1db
|
4
|
+
data.tar.gz: 21f745676143a13f2d558be71996b6eb85ab174b6ee1c52f876a4fd669579b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 252a11d6ff9945f6834a8060139a1cb6a4865e90d36924915525bf572f8196fa590eaa0d7560dde072db65c11ac967bae304d424d6cf7fa26c3f4d4ad3e31707
|
7
|
+
data.tar.gz: a15984a6b6dc0710cf482b335172b9f144c45bb866fdf4453f5051f45b0a0d47cc624c03907f164cd83b2b523557433b6396dffd0e039d4acf2a80b59645d712
|
data/Gemfile.lock
CHANGED
data/lib/rake_vault/version.rb
CHANGED
data/lib/rake_vault.rb
CHANGED
@@ -7,7 +7,11 @@ require 'rake_vault/token_file'
|
|
7
7
|
|
8
8
|
module RakeVault
|
9
9
|
def self.define_installation_tasks(opts = {})
|
10
|
-
|
10
|
+
command_task_set = define_command_installation_tasks(opts)
|
11
|
+
|
12
|
+
configure_ruby_vault(command_task_set.binary)
|
13
|
+
|
14
|
+
command_task_set.delegate
|
11
15
|
end
|
12
16
|
|
13
17
|
def self.define_oidc_auth_task(opts = {}, &block)
|
@@ -17,4 +21,16 @@ module RakeVault
|
|
17
21
|
def self.define_app_role_auth_task(opts = {}, &block)
|
18
22
|
RakeVault::Tasks::AppRoleAuth.define(opts, &block)
|
19
23
|
end
|
24
|
+
|
25
|
+
class << self
|
26
|
+
private
|
27
|
+
|
28
|
+
def define_command_installation_tasks(opts = {})
|
29
|
+
RakeVault::TaskSets::Vault.define(opts)
|
30
|
+
end
|
31
|
+
|
32
|
+
def configure_ruby_vault(binary)
|
33
|
+
RubyVault.configure { |c| c.binary = binary }
|
34
|
+
end
|
35
|
+
end
|
20
36
|
end
|