Class: Record

Inherits:
Resource
  • Object
show all
Defined in:
lib/slicehost-tools/resources/dns.rb

Class Method Summary collapse

Class Method Details

.to_zone_rr(options = {}) ⇒ Object



16
17
18
19
# File 'lib/slicehost-tools/resources/dns.rb', line 16

def self.to_zone_rr(options = {})
  id = "; ID=#{options[:id]}" if options[:id]
  "%-20s %-10s IN %-10s %-25s %s" % [options[:name], options[:ttl], options[:type], options[:data], id]
end