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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da86d812082bfd701832d8fe391c222492127e74b6626a7fd3c757150d95d65d
4
- data.tar.gz: 6d2e22a0282bb02fbe31e382cd3a29cd250977ee1046569244d079e8be05b579
3
+ metadata.gz: e9824e1b8c336fa453d4ae6284e5004eac67aaf593d237d8ec426a760faee1db
4
+ data.tar.gz: 21f745676143a13f2d558be71996b6eb85ab174b6ee1c52f876a4fd669579b9d
5
5
  SHA512:
6
- metadata.gz: 0a6e300befd67fb8d2ca2cd9dab3522ab09d2bece695789f9358baae4b1b94310679c4a955ff1af8774a6cd6d86e8750127f0636759db08664c9abb0208d0d01
7
- data.tar.gz: d268aa3de8b5a443e15a3b01ae3de60a4e1954b6096304330c2de3b7cf74210b87900dfa2da0a281905464d5f957435dd5f878cb0d1716d005a47c380c9c8b2d
6
+ metadata.gz: 252a11d6ff9945f6834a8060139a1cb6a4865e90d36924915525bf572f8196fa590eaa0d7560dde072db65c11ac967bae304d424d6cf7fa26c3f4d4ad3e31707
7
+ data.tar.gz: a15984a6b6dc0710cf482b335172b9f144c45bb866fdf4453f5051f45b0a0d47cc624c03907f164cd83b2b523557433b6396dffd0e039d4acf2a80b59645d712
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_vault (0.1.0.pre.10)
4
+ rake_vault (0.1.0.pre.11)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 3.1)
7
7
  rake_factory (~> 0.23)
@@ -35,7 +35,9 @@ module RakeVault
35
35
  data: [role_id, secret_id].compact,
36
36
  format: 'json'
37
37
  )
38
- RubyVault.reset!
38
+ RubyVault.configure do |config|
39
+ config.stdout = $stdout
40
+ end
39
41
  RakeVault::TokenFile.write(stdout_io.string)
40
42
  end
41
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeVault
4
- VERSION = '0.1.0.pre.10'
4
+ VERSION = '0.1.0.pre.11'
5
5
  end
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
- RakeVault::TaskSets::Vault.define(opts).delegate
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.10
4
+ version: 0.1.0.pre.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers