Class: RSpec::Terraform::Helpers::Plan
- Includes:
- Actions::Clean, Actions::Init, Actions::Plan, Actions::Remove, Actions::Show, Actions::Validate
- Defined in:
- lib/rspec/terraform/helpers/plan.rb
Instance Attribute Summary
Attributes inherited from Base
#binary, #configuration_provider, #execution_mode, #logger, #stderr, #stdin, #stdout
Instance Method Summary collapse
Methods included from Actions::Remove
Methods included from Actions::Show
Methods included from Actions::CommandInstantiation
Methods included from Actions::Plan
Methods included from Actions::Init
Methods included from Actions::Clean
Methods included from Actions::Validate
Methods inherited from Base
Methods included from Parameters
#resolve_parameters, #with_configuration_provider_parameters, #with_mandatory_parameters, #with_resolved_vars
Constructor Details
This class inherits a constructor from RSpec::Terraform::Helpers::Base
Instance Method Details
#execute(overrides = {}, &block) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rspec/terraform/helpers/plan.rb', line 17 def execute(overrides = {}, &block) parameters = resolve_parameters(overrides, &block) validate(parameters) clean(parameters) init(parameters) plan_file = plan(parameters) plan_contents = show(parameters, plan_file) remove(parameters, plan_file) parse(plan_contents) end |