lib/fog/zerigo/models/dns/zone.rb in fog-1.8.0 vs lib/fog/zerigo/models/dns/zone.rb in fog-1.9.0

- old
+ new

@@ -14,12 +14,12 @@ attribute :ttl, :aliases => 'default-ttl' attribute :type, :aliases => 'ns-type' attribute :updated_at, :aliases => 'updated-at' # <custom-nameservers>ns1.example.com,ns2.example.com</custom-nameservers> - # <custom-ns type="boolean">true</custom-ns> - # <hostmaster>dnsadmin@example.com</hostmaster> + # <custom-ns type="boolean">true</custom-ns> + # <hostmaster>dnsadmin@example.com</hostmaster> # <notes nil="true"/> # <ns1 nil="true"/> # <nx-ttl nil="true"></nx-ttl> # <slave-nameservers nil="true"/> # <tag-list>one two</tag-list> @@ -31,19 +31,19 @@ super end def destroy requires :identity - connection.delete_zone(identity) + service.delete_zone(identity) true end def records @records ||= begin Fog::DNS::Zerigo::Records.new( :zone => self, - :connection => connection + :service => service ) end end def nameservers @@ -69,14 +69,14 @@ # * hostmaster<~String> - email of the DNS administrator or hostmaster # * notes<~String> - notes about the domain # * restrict_axfr<~String> - indicates if AXFR transfers should be restricted to IPs in axfr-ips # * tag_list<~String> - List of all tags associated with this domain data = unless identity - connection.create_zone(domain, ttl, type, options) + service.create_zone(domain, ttl, type, options) else options[:default_ttl] = ttl options[:ns_type] = type - connection.update_zone(identity, options) + service.update_zone(identity, options) end merge_attributes(data.body) true end