rake_vault 0.1.0.pre.2 → 0.1.0.pre.3

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: 3b3028d4283af25d87a01ae8f73534649f79a4df34e156dcc496b82af764e1b7
4
- data.tar.gz: ce3f22a3f947690fd40a4a0a0d73023214a6a0aa7d70f62335770c114a5acbd2
3
+ metadata.gz: 3ac607890353fe63a0312ad23acf18bc0a828104cb0f9de6f42b7df1cad5441b
4
+ data.tar.gz: 1c72695bd456968a393965f343f2ed1f61bb750475bc5061bd8cf3bc789709be
5
5
  SHA512:
6
- metadata.gz: 7bedeb2123084cc8439357c89a702893a4a92b33bd805372af4be7177a87b63ff7e3f869ad7bc1a06859dec2f335aee2256bb8abadecf5547277c409c169958a
7
- data.tar.gz: 5ba293508be8370e89a81dfd9a05f18e848f3fe07109a8707df81e93fd3fa0771e1c128624ac105a22c9de6fe72fa66cf7c47e5be667bc30bb053a84a04ae857
6
+ metadata.gz: 353dc3a4920021244a630773a481a0e6dbe702f8b61e2d3d56f214da6e607e039a48dccb2865e50a3d57f8cb8eec2edffe04be8b59afb56ba50857413c3b83de
7
+ data.tar.gz: 8a7b94ac31a5dd4a6d2ebe93282b025117216db3731d31c53ad706f62f7081fe17cbdaccd450335e7f72e8e37f0134ef3582b1d00ac8cbd579a81bb93b379b59
data/Gemfile CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Specify your gem's dependencies in rake_docker.gemspec
5
+ # Specify your gem's dependencies in rake_vault.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,10 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_vault (0.1.0.pre.2)
4
+ rake_vault (0.1.0.pre.3)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 3.1)
7
7
  rake_factory (~> 0.23)
8
+ ruby_vault (~> 0.1.0.pre.15)
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
@@ -31,6 +32,7 @@ GEM
31
32
  concurrent-ruby (~> 1.0)
32
33
  i18n (1.11.0)
33
34
  concurrent-ruby (~> 1.0)
35
+ immutable-struct (2.4.1)
34
36
  json (2.6.2)
35
37
  lino (3.0.0)
36
38
  hamster (~> 3.0)
@@ -88,7 +90,7 @@ GEM
88
90
  diff-lcs (>= 1.2.0, < 2.0)
89
91
  rspec-support (~> 3.11.0)
90
92
  rspec-support (3.11.0)
91
- rubocop (1.32.0)
93
+ rubocop (1.33.0)
92
94
  json (~> 2.3)
93
95
  parallel (~> 1.10)
94
96
  parser (>= 3.1.0.0)
@@ -108,6 +110,9 @@ GEM
108
110
  ruby2_keywords (0.0.5)
109
111
  ruby_gpg2 (0.8.0)
110
112
  lino (>= 1.5)
113
+ ruby_vault (0.1.0.pre.15)
114
+ immutable-struct (~> 2.4)
115
+ lino (~> 3.0)
111
116
  rubyzip (2.3.2)
112
117
  sawyer (0.9.2)
113
118
  addressable (>= 2.3.5)
@@ -4,7 +4,7 @@ require 'rake_factory'
4
4
 
5
5
  module RakeVault
6
6
  module Tasks
7
- class Login < RakeFactory::Task
7
+ class AppRoleAuth < RakeFactory::Task
8
8
  default_name :login
9
9
  action do |_t|
10
10
  puts 'done'
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake_factory'
4
+
5
+ module RakeVault
6
+ module Tasks
7
+ class OidcAuth < RakeFactory::Task
8
+ default_name :login
9
+ parameter :role
10
+
11
+ action do |task|
12
+ RubyVault.login(
13
+ method: 'oidc',
14
+ role: task.role
15
+ )
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'tasks/login'
3
+ require_relative 'tasks/oidc_auth'
4
+ require_relative 'tasks/app_role_auth'
4
5
 
5
6
  module RakeVault
6
7
  module Tasks
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeVault
4
- VERSION = '0.1.0.pre.2'
4
+ VERSION = '0.1.0.pre.3'
5
5
  end
data/lib/rake_vault.rb CHANGED
@@ -8,4 +8,8 @@ module RakeVault
8
8
  def self.define_installation_tasks(opts = {})
9
9
  RakeVault::TaskSets::Vault.define(opts).delegate
10
10
  end
11
+
12
+ def self.define_oidc_auth_task(opts = {}, &block)
13
+ RakeVault::Tasks::OidcAuth.define(opts, &block)
14
+ end
11
15
  end
data/rake_vault.gemspec CHANGED
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency 'colored2', '~> 3.1'
40
40
  spec.add_dependency 'rake_dependencies', '~> 3.1'
41
41
  spec.add_dependency 'rake_factory', '~> 0.23'
42
+ spec.add_dependency 'ruby_vault', '~> 0.1.0.pre.15'
42
43
 
43
44
  spec.add_development_dependency 'activesupport'
44
45
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.2
4
+ version: 0.1.0.pre.3
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-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.23'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ruby_vault
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.1.0.pre.15
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.1.0.pre.15
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: activesupport
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -267,7 +281,8 @@ files:
267
281
  - lib/rake_vault/task_sets.rb
268
282
  - lib/rake_vault/task_sets/vault.rb
269
283
  - lib/rake_vault/tasks.rb
270
- - lib/rake_vault/tasks/login.rb
284
+ - lib/rake_vault/tasks/app_role_auth.rb
285
+ - lib/rake_vault/tasks/oidc_auth.rb
271
286
  - lib/rake_vault/version.rb
272
287
  - rake_vault.gemspec
273
288
  homepage: https://github.com/infrablocks/rake_vault