rspec-terraform 0.1.0.pre.30 → 0.1.0.pre.31

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: b023d70b2108c48cd8043ce090e91a5232d32df7cef1b14c0045bd29a5742196
4
- data.tar.gz: c335a6a00992aa894ede64d821be06033727ae056182f475244d77e720b23b35
3
+ metadata.gz: eaa5c41415be59f0dc571fa3f26d719ef78d5e18604688ade58770f39f3b124a
4
+ data.tar.gz: a27d2cef84a89423e11ddb46e117c9c37677ae54d1d23d28ba2f5d2ff5a2ac94
5
5
  SHA512:
6
- metadata.gz: 922d9f5a1ca42a48a49cca3880d3bd3e36530bd0311d90e431a113c4eec359af133a7a5f1c24be311dd85d026584aeebf05f103ac88e6adf2ae021b2639a8648
7
- data.tar.gz: e344912487fe48386df455ae61ef00d9e22075211f6317f7b45ccbb4905938811187394daac4ec04800f9b9934dc3bbb06c8755f523a9a44e4c620e825a1d28d
6
+ metadata.gz: 2306fb4b85b10fb4bbe7e2bf05e9782d0a9b7c08792597c14495d1efa1819af4188878621e988fd71d06d880f928280002922fb71669359135a8e84323918043
7
+ data.tar.gz: 408eff4057c23a6185aa34065ebc8f1c64aa309d2f574983a40020ec129b5747656ebf12bea469997139b7d6b37f7102d2a8ea20e17c28793f384ff2be3206e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-terraform (0.1.0.pre.30)
4
+ rspec-terraform (0.1.0.pre.31)
5
5
  confidante (>= 0.27)
6
6
  rspec (>= 3.0)
7
7
  ruby-terraform (= 1.7.0.pre.15)
@@ -9,18 +9,17 @@ module RSpec
9
9
  module Helpers
10
10
  class Apply
11
11
  attr_reader(
12
- :overrides, :configuration_provider, :binary, :execution_mode
12
+ :configuration_provider, :binary, :execution_mode
13
13
  )
14
14
 
15
- def initialize(overrides = {}, configuration_provider = nil)
16
- @overrides = overrides
15
+ def initialize(opts = {})
17
16
  @configuration_provider =
18
- configuration_provider || Configuration.identity_provider
17
+ opts[:configuration_provider] || Configuration.identity_provider
19
18
  @binary = RSpec.configuration.terraform_binary
20
19
  @execution_mode = RSpec.configuration.terraform_execution_mode
21
20
  end
22
21
 
23
- def execute(&block)
22
+ def execute(overrides = {}, &block)
24
23
  parameters = with_configuration_provider_parameters(overrides)
25
24
  parameters = with_resolved_vars(parameters, &block)
26
25
  parameters = with_mandatory_parameters(parameters)
@@ -9,18 +9,17 @@ module RSpec
9
9
  module Helpers
10
10
  class Destroy
11
11
  attr_reader(
12
- :overrides, :configuration_provider, :binary, :execution_mode
12
+ :configuration_provider, :binary, :execution_mode
13
13
  )
14
14
 
15
- def initialize(overrides = {}, configuration_provider = nil)
16
- @overrides = overrides
15
+ def initialize(opts = {})
17
16
  @configuration_provider =
18
- configuration_provider || Configuration.identity_provider
17
+ opts[:configuration_provider] || Configuration.identity_provider
19
18
  @binary = RSpec.configuration.terraform_binary
20
19
  @execution_mode = RSpec.configuration.terraform_execution_mode
21
20
  end
22
21
 
23
- def execute(&block)
22
+ def execute(overrides = {}, &block)
24
23
  parameters = with_configuration_provider_parameters(overrides)
25
24
  parameters = with_resolved_vars(parameters, &block)
26
25
 
@@ -7,18 +7,17 @@ module RSpec
7
7
  module Helpers
8
8
  class Output
9
9
  attr_reader(
10
- :overrides, :configuration_provider, :binary, :execution_mode
10
+ :configuration_provider, :binary, :execution_mode
11
11
  )
12
12
 
13
- def initialize(overrides = {}, configuration_provider = nil)
14
- @overrides = overrides
13
+ def initialize(opts = {})
15
14
  @configuration_provider =
16
- configuration_provider || Configuration.identity_provider
15
+ opts[:configuration_provider] || Configuration.identity_provider
17
16
  @binary = RSpec.configuration.terraform_binary
18
17
  @execution_mode = RSpec.configuration.terraform_execution_mode
19
18
  end
20
19
 
21
- def execute
20
+ def execute(overrides = {})
22
21
  parameters = with_configuration_provider_parameters(overrides)
23
22
  parameters = with_mandatory_parameters(parameters)
24
23
 
@@ -12,18 +12,17 @@ module RSpec
12
12
  # rubocop:disable Metrics/ClassLength
13
13
  class Plan
14
14
  attr_reader(
15
- :overrides, :configuration_provider, :binary, :execution_mode
15
+ :configuration_provider, :binary, :execution_mode
16
16
  )
17
17
 
18
- def initialize(overrides = {}, configuration_provider = nil)
19
- @overrides = overrides
18
+ def initialize(opts = {})
20
19
  @configuration_provider =
21
- configuration_provider || Configuration.identity_provider
20
+ opts[:configuration_provider] || Configuration.identity_provider
22
21
  @binary = RSpec.configuration.terraform_binary
23
22
  @execution_mode = RSpec.configuration.terraform_execution_mode
24
23
  end
25
24
 
26
- def execute(&block)
25
+ def execute(overrides = {}, &block)
27
26
  parameters = with_configuration_provider_parameters(overrides)
28
27
  parameters = with_resolved_vars(parameters, &block)
29
28
 
@@ -6,15 +6,14 @@ module RSpec
6
6
  module Terraform
7
7
  module Helpers
8
8
  class Var
9
- attr_reader(:overrides, :configuration_provider)
9
+ attr_reader(:configuration_provider)
10
10
 
11
- def initialize(overrides = {}, configuration_provider = nil)
12
- @overrides = overrides
11
+ def initialize(opts = {})
13
12
  @configuration_provider =
14
- configuration_provider || Configuration.identity_provider
13
+ opts[:configuration_provider] || Configuration.identity_provider
15
14
  end
16
15
 
17
- def execute(&block)
16
+ def execute(overrides = {}, &block)
18
17
  parameters = with_configuration_provider_parameters(overrides)
19
18
  parameters = with_resolved_vars(parameters, &block)
20
19
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Terraform
5
- VERSION = '0.1.0.pre.30'
5
+ VERSION = '0.1.0.pre.31'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.30
4
+ version: 0.1.0.pre.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers