class TerraformWrapper::Shared::Backends::Common
Public Class Methods
new(options:, variables:)
click to toggle source
# 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
Public Instance Methods
hash()
click to toggle source
# 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()
click to toggle source
# 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
Private Instance Methods
construct(options:, variables:)
click to toggle source
# File lib/terraform-wrapper/shared/backends/common.rb, line 57 def construct(options:, variables:) @options = options @variables = variables specific end
specific()
click to toggle source
# File lib/terraform-wrapper/shared/backends/common.rb, line 66 def specific() logger.fatal("The backend specific class should override the 'specific' method to include backend specific validation and setup, or simply return 'true' if it is not required.") end