From 113dadd48d23aceba84f5330a4629411f20832fa Mon Sep 17 00:00:00 2001 From: Shawn Catanzarite Date: Wed, 25 Sep 2013 10:29:22 -0700 Subject: [PATCH] remove find_by_name for now --- lib/fog/dynect/models/dns/records.rb | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/lib/fog/dynect/models/dns/records.rb b/lib/fog/dynect/models/dns/records.rb index 9b7527d09..ab09ca4fe 100644 --- a/lib/fog/dynect/models/dns/records.rb +++ b/lib/fog/dynect/models/dns/records.rb @@ -52,29 +52,6 @@ module Fog }) end - def find_by_name(name) - requires :zone - data = [] - service.get_all_records(zone.domain, options).body['data'].select{|url| url =~ /\/#{name}\//}.each do |url| - (_, _, t, _, fqdn, id) = url.split('/') - type = t.gsub(/Record$/, '') - - # leave out the default, read only records - next if ['NS', 'SOA'].include?(type) - - record = service.get_record(type, zone.domain, fqdn, 'record_id' => id).body['data'] - - data << { - :identity => record['record_id'], - :fqdn => record['fqdn'], - :type => record['record_type'], - :rdata => record['rdata'] - } - end - - load(data) - end - def new(attributes = {}) requires :zone super({:zone => zone}.merge!(attributes))