Class: RSpec::Terraform::Helpers::Base
- Inherits:
-
Object
- Object
- RSpec::Terraform::Helpers::Base
- Includes:
- Parameters
- Defined in:
- lib/rspec/terraform/helpers/base.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
readonly
Returns the value of attribute binary.
-
#configuration_provider ⇒ Object
readonly
Returns the value of attribute configuration_provider.
-
#execution_mode ⇒ Object
readonly
Returns the value of attribute execution_mode.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
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
#binary ⇒ Object (readonly)
Returns the value of attribute binary.
11 12 13 |
# File 'lib/rspec/terraform/helpers/base.rb', line 11 def binary @binary end |
#configuration_provider ⇒ Object (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_mode ⇒ Object (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 |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
11 12 13 |
# File 'lib/rspec/terraform/helpers/base.rb', line 11 def logger @logger end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
11 12 13 |
# File 'lib/rspec/terraform/helpers/base.rb', line 11 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
11 12 13 |
# File 'lib/rspec/terraform/helpers/base.rb', line 11 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
11 12 13 |
# File 'lib/rspec/terraform/helpers/base.rb', line 11 def stdout @stdout end |