Sha256: c72e55608a6118645de31916bdcc68c4a732b17977ad07b26386d7171d425c26
Contents?: true
Size: 621 Bytes
Versions: 10
Compression:
Stored size: 621 Bytes
Contents
module DNSimple module Commands class RecordList 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| extra = ["ttl:#{record.ttl}", "id:#{record.id}"] extra << "prio:#{record.prio}" if record.record_type == "MX" extra = "(#{extra.join(', ')})" puts "\t#{record.name}.#{record.domain.name} (#{record.record_type})-> #{record.content} #{extra}" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems