class DLDInternet::DOctl::API::Compute::Domain::Records::List
Public Instance Methods
GetDomainRecordsList(domain)
click to toggle source
noinspection RubyUnnecessaryReturnValue
# File lib/dldinternet/doctl/api/compute/domain/records/list.rb, line 12 def GetDomainRecordsList(domain) list = [] client.domain_records.all(for_domain: domain).each do |page| list << page end list rescue ::DropletKit::Error => e if matches = e.message.match(%r{^([0-9]{3}):\s+(\{.*\})\s*$}) json = JSON.parse(matches[2]) @logger.fatal json['message'] else @logger.fatal e.message end exit 1 end