Class: RSpec::Terraform::Helpers::Base

Inherits:
Object
  • Object
show all
Includes:
Parameters
Defined in:
lib/rspec/terraform/helpers/base.rb

Direct Known Subclasses

Apply, Destroy, Output, Plan, Var

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Parameters

#resolve_parameters, #with_configuration_provider_parameters, #with_mandatory_parameters, #with_resolved_vars

Constructor Details

#initialize(opts = {}) ⇒ Base

Returns a new instance of Base.



21
22
23
24
25
26
27
28
29
30
# File 'lib/rspec/terraform/helpers/base.rb', line 21

def initialize(opts = {})
  @configuration_provider =
    opts[:configuration_provider] || Configuration.identity_provider
  @binary = opts[:binary] || 'terraform'
  @logger = opts[:logger]
  @stdin = opts[:stdin]
  @stdout = opts[:stdout]
  @stderr = opts[:stderr]
  @execution_mode = opts[:execution_mode] || :in_place
end

Instance Attribute Details

#binaryObject (readonly)

Returns the value of attribute binary.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def binary
  @binary
end

#configuration_providerObject (readonly)

Returns the value of attribute configuration_provider.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def configuration_provider
  @configuration_provider
end

#execution_modeObject (readonly)

Returns the value of attribute execution_mode.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def execution_mode
  @execution_mode
end

#loggerObject (readonly)

Returns the value of attribute logger.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def logger
  @logger
end

#stderrObject (readonly)

Returns the value of attribute stderr.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def stderr
  @stderr
end

#stdinObject (readonly)

Returns the value of attribute stdin.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def stdin
  @stdin
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



11
12
13
# File 'lib/rspec/terraform/helpers/base.rb', line 11

def stdout
  @stdout
end