Class: TerraformWrapper::Shared::Backends::Common
- Inherits:
-
Object
- Object
- TerraformWrapper::Shared::Backends::Common
- Includes:
- Logging
- Defined in:
- lib/terraform-wrapper/shared/backends/common.rb
Constant Summary collapse
- @@ext =
".tfstate"
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(options:, variables:) ⇒ Common
constructor
A new instance of Common.
- #type ⇒ Object
Methods included from Logging
configure_logger_for, logger_for
Constructor Details
#initialize(options:, variables:) ⇒ Common
Returns a new instance of Common.
33 34 35 |
# File 'lib/terraform-wrapper/shared/backends/common.rb', line 33 def initialize(options:, variables:) logger.fatal("This class should not be used directly! Please create a backend-specific class instead!") end |
Instance Method Details
#hash ⇒ Object
39 40 41 |
# File 'lib/terraform-wrapper/shared/backends/common.rb', line 39 def hash() logger.fatal("The backend specific class should override the 'hash' method to return a hash of parameters for Terraform to set!") end |
#type ⇒ Object
45 46 47 48 49 |
# File 'lib/terraform-wrapper/shared/backends/common.rb', line 45 def type() logger.fatal("The backend specific class should set the 'type' class variable to a string!") unless @@type.kind_of?(String) return @@type end |