4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/dnsimple/commands/record_list.rb', line 4
def execute(args, options = {})
domain_name = args.shift
records = Record.all(DNSimple::Domain.new(:name => domain_name))
puts "Found #{records.length} records for #{domain_name}"
records.each do |record|
= ["ttl:#{record.ttl}", "id:#{record.id}"]
<< "prio:#{record.prio}" if record.record_type == "MX"
= "(#{.join(', ')})"
puts "\t#{record.name}.#{record.domain.name} (#{record.record_type})-> #{record.content} #{}"
end
end
|