lib/rspec/terraform/helpers/plan.rb in rspec-terraform-0.1.0.pre.33 vs lib/rspec/terraform/helpers/plan.rb in rspec-terraform-0.1.0.pre.34
- old
+ new
@@ -16,11 +16,11 @@
)
def initialize(opts = {})
@configuration_provider =
opts[:configuration_provider] || Configuration.identity_provider
- @binary = RSpec.configuration.terraform_binary
- @execution_mode = RSpec.configuration.terraform_execution_mode
+ @binary = opts[:binary] || 'terraform'
+ @execution_mode = opts[:execution_mode] || :in_place
end
def execute(overrides = {}, &block)
parameters = with_configuration_provider_parameters(overrides)
parameters = with_resolved_vars(parameters, &block)