Module: DNSCheck::Core

Included in:
Node
Defined in:
lib/dns-check/core.rb

Instance Method Summary collapse

Instance Method Details

#__init(options, filter = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/dns-check/core.rb', line 8

def __init options, filter={}
  is_hostname_sane?   options[:hostname]
  indice_file_exist?  options[:indice_store]

  indice_records = load_indice(options[:indice_store], options[:location])

  select_random_records(options[:size], indice_records)
end