Sha256: 04f6591dc22aa4447246e785cbcecc1650320aa09cfd737e9514ac54e45c6aa4
Contents?: true
Size: 1.49 KB
Versions: 5
Compression:
Stored size: 1.49 KB
Contents
# frozen_string_literal: true require_relative 'helpers/apply' require_relative 'helpers/destroy' require_relative 'helpers/plan' require_relative 'helpers/output' require_relative 'helpers/var' module RSpec module Terraform module Helpers def apply(overrides = {}, &block) RSpec::Terraform::Helpers::Apply .new(helper_options) .execute(overrides, &block) end def destroy(overrides = {}, &block) RSpec::Terraform::Helpers::Destroy .new(helper_options) .execute(overrides, &block) end def output(overrides = {}, &block) RSpec::Terraform::Helpers::Output .new(helper_options) .execute(overrides, &block) end def plan(overrides = {}, &block) RSpec::Terraform::Helpers::Plan .new(helper_options) .execute(overrides, &block) end def var(overrides = {}, &block) RSpec::Terraform::Helpers::Var .new(helper_options) .execute(overrides, &block) end private def helper_options config = RSpec.configuration { binary: config.terraform_binary, logger: config.terraform_logger, stdin: config.terraform_stdin, stdout: config.terraform_stdout, stderr: config.terraform_stderr, execution_mode: config.terraform_execution_mode, configuration_provider: config.terraform_configuration_provider } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems