Method: RecordStore::CLI#info

Defined in:
lib/record_store/cli.rb

#infoObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/record_store/cli.rb', line 37

def info
  Zone.each do |name, zone|
    puts "\n"
    puts "Zone: #{name}"
    puts "Providers:"
    zone.config.providers.each { |p| puts "- #{p}" }
    if (delegation = zone.fetch_authority)
      puts "Authoritative nameservers:"
      delegation.each { |d| puts "- #{d}" }
    else
      $stderr.puts "ERROR: Unable to determine delegation (#{name})"
    end
  end
end