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