Class: TerraformWrapper::Shared::Auths::Common

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/terraform-wrapper/shared/auths/common.rb

Direct Known Subclasses

Azure

Instance Method Summary collapse

Methods included from Logging

configure_logger_for, logger_for

Constructor Details

#initialize(options:, variables:) ⇒ Common

Returns a new instance of Common.



32
33
34
# File 'lib/terraform-wrapper/shared/auths/common.rb', line 32

def initialize(options:, variables:)
  logger.fatal("This class should not be used directly! Please create an authenticator-specific class instead!")
end

Instance Method Details

#authObject



38
39
40
# File 'lib/terraform-wrapper/shared/auths/common.rb', line 38

def auth()
  logger.fatal("The authenticator specific class should override the 'auth' method to complete the authentication process!")
end

#clearObject



44
45
46
# File 'lib/terraform-wrapper/shared/auths/common.rb', line 44

def clear()
  logger.fatal("The authenticator specific class should override the 'auth' method to clear any authentication details!")
end

#typeObject



50
51
52
53
54
# File 'lib/terraform-wrapper/shared/auths/common.rb', line 50

def type()
  logger.fatal("The authenticator specific class should set the 'type' class variable to a string!") unless @@type.kind_of?(String)

  return @@type
end