class HelmWrapper::Shared::Auths::Common
Public Class Methods
new(options:, variables:)
click to toggle source
# File lib/helm-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
Public Instance Methods
auth()
click to toggle source
# File lib/helm-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
clear()
click to toggle source
# File lib/helm-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
type()
click to toggle source
# File lib/helm-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
Private Instance Methods
construct(options:, variables:)
click to toggle source
# File lib/helm-wrapper/shared/auths/common.rb, line 62 def construct(options:, variables:) @options = options @variables = variables specific end
specific()
click to toggle source
# File lib/helm-wrapper/shared/auths/common.rb, line 71 def specific() logger.fatal("The authenticator specific class should override the 'specific' method to include authenticator specific validation and setup, or simply return 'true' if it is not required.") end