class Coppertone::Mechanism::Exists

Implements the exists mechanism.

Public Class Methods

label() click to toggle source
# File lib/coppertone/mechanism/exists.rb, line 12
def self.label
  'exists'
end

Public Instance Methods

match_target_name(_macro_context, request_context, target_name) click to toggle source
# File lib/coppertone/mechanism/exists.rb, line 7
def match_target_name(_macro_context, request_context, target_name)
  records = request_context.dns_client.fetch_a_records(target_name)
  records.any?
end