Module: Acme::Client::Resources::Challenges

Defined in:
lib/acme/client/resources/challenges.rb

Defined Under Namespace

Classes: Base, DNS01, HTTP01, Unsupported

Constant Summary collapse

CHALLENGE_TYPES =
{
  'http-01' => Acme::Client::Resources::Challenges::HTTP01,
  'dns-01' => Acme::Client::Resources::Challenges::DNS01
}

Class Method Summary collapse

Class Method Details

.new(client, type:, **arguments) ⇒ Object



14
15
16
# File 'lib/acme/client/resources/challenges.rb', line 14

def self.new(client, type:, **arguments)
  CHALLENGE_TYPES.fetch(type, Unsupported).new(client, **arguments)
end