Class: Fog::DNS::Dreamhost::Zone
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::Dreamhost::Zone
- Defined in:
- lib/fog/dreamhost/models/dns/zone.rb
Overview
Dreamhost API has no concept of ‘Zone’, but we can emulate it.
Instance Method Summary collapse
-
#destroy ⇒ Object
There’s no destroy API call.
-
#nameservers ⇒ Object
Return the Dreamhost nameserver list.
-
#records ⇒ Object
Return a list of records for this zone.
-
#save ⇒ Object
There’s no zone create API call.
Instance Method Details
#destroy ⇒ Object
There’s no destroy API call
20 21 22 |
# File 'lib/fog/dreamhost/models/dns/zone.rb', line 20 def destroy raise NotImplementedError.new end |
#nameservers ⇒ Object
Return the Dreamhost nameserver list
38 39 40 41 42 43 44 |
# File 'lib/fog/dreamhost/models/dns/zone.rb', line 38 def nameservers [ "ns1.dreamhost.com", "ns2.dreamhost.com", "ns3.dreamhost.com", ] end |
#records ⇒ Object
Return a list of records for this zone
Since Dreamhost does not support zones, this is emulated. Iterates over all the records and discards the ones where Record.zone != domain (the current zone domain)
31 32 33 |
# File 'lib/fog/dreamhost/models/dns/zone.rb', line 31 def records service.records.all :zone => domain end |
#save ⇒ Object
There’s no zone create API call
49 50 51 |
# File 'lib/fog/dreamhost/models/dns/zone.rb', line 49 def save raise NotImplementedError.new end |