module HttpdConfigmapGenerator

Constants

VERSION

Public Class Methods

auth_class(auth_type) click to toggle source
# File lib/httpd_configmap_generator.rb, line 24
def self.auth_class(auth_type)
  require "active_support/core_ext/string" # for camelize

  auth_type = auth_type.tr('-', '_').camelize
  raise "Invalid Authentication Type #{auth_type} specified" unless const_defined?(auth_type, false)
  const_get(auth_type, false)
end
new_config(auth_type) click to toggle source
# File lib/httpd_configmap_generator.rb, line 13
def self.new_config(auth_type)
  auth_class(auth_type).new
end
supported_auth_types() click to toggle source
# File lib/httpd_configmap_generator.rb, line 17
def self.supported_auth_types
  constants.collect do |c|
    k = const_get(c)
    k::AUTH[:subtype] if k.kind_of?(Class) && k.constants.include?(:AUTH)
  end.compact
end