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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rspec/terraform/helpers/apply.rb +4 -5
- data/lib/rspec/terraform/helpers/destroy.rb +4 -5
- data/lib/rspec/terraform/helpers/output.rb +4 -5
- data/lib/rspec/terraform/helpers/plan.rb +4 -5
- data/lib/rspec/terraform/helpers/var.rb +4 -5
- data/lib/rspec/terraform/version.rb +1 -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: eaa5c41415be59f0dc571fa3f26d719ef78d5e18604688ade58770f39f3b124a
|
4
|
+
data.tar.gz: a27d2cef84a89423e11ddb46e117c9c37677ae54d1d23d28ba2f5d2ff5a2ac94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2306fb4b85b10fb4bbe7e2bf05e9782d0a9b7c08792597c14495d1efa1819af4188878621e988fd71d06d880f928280002922fb71669359135a8e84323918043
|
7
|
+
data.tar.gz: 408eff4057c23a6185aa34065ebc8f1c64aa309d2f574983a40020ec129b5747656ebf12bea469997139b7d6b37f7102d2a8ea20e17c28793f384ff2be3206e8
|
data/Gemfile.lock
CHANGED
@@ -9,18 +9,17 @@ module RSpec
|
|
9
9
|
module Helpers
|
10
10
|
class Apply
|
11
11
|
attr_reader(
|
12
|
-
:
|
12
|
+
:configuration_provider, :binary, :execution_mode
|
13
13
|
)
|
14
14
|
|
15
|
-
def initialize(
|
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
|
-
:
|
12
|
+
:configuration_provider, :binary, :execution_mode
|
13
13
|
)
|
14
14
|
|
15
|
-
def initialize(
|
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
|
-
:
|
10
|
+
:configuration_provider, :binary, :execution_mode
|
11
11
|
)
|
12
12
|
|
13
|
-
def initialize(
|
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
|
-
:
|
15
|
+
:configuration_provider, :binary, :execution_mode
|
16
16
|
)
|
17
17
|
|
18
|
-
def initialize(
|
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(:
|
9
|
+
attr_reader(:configuration_provider)
|
10
10
|
|
11
|
-
def initialize(
|
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
|
|