Class: Dnsign::DnsService
- Inherits:
-
Object
- Object
- Dnsign::DnsService
show all
- Defined in:
- lib/dnsign/dns_service.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(opts = {}) ⇒ DnsService
Returns a new instance of DnsService.
4
5
|
# File 'lib/dnsign/dns_service.rb', line 4
def initialize(opts={})
end
|
Class Method Details
.create_from_name(service_name, opts = {}) ⇒ Object
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/dnsign/dns_service.rb', line 15
def self.create_from_name(service_name, opts={})
service_name = service_name.to_sym
if DnsServices.constants.include? service_name
DnsServices.const_get(service_name).new opts
else
fail Error::UnsupportedDnsService,
"DNS Service #{service_name} is not supported, choose among #{DnsServices::Constants}"
end
end
|
Instance Method Details
#retrieve_ip(fqdn) ⇒ Object
11
12
13
|
# File 'lib/dnsign/dns_service.rb', line 11
def retrieve_ip(fqdn)
raise NotImplementedError
end
|
#update_ip(fqdn, ip) ⇒ Object
7
8
9
|
# File 'lib/dnsign/dns_service.rb', line 7
def update_ip(fqdn, ip)
raise NotImplementedError
end
|