lib/sunzi/dns.rb in sunzi-1.5.1 vs lib/sunzi/dns.rb in sunzi-1.5.2
- old
+ new
@@ -1,7 +1,9 @@
module Sunzi
class DNS
+ include Sunzi::Utility
+
def initialize(config, cloud)
dns = config['dns']
@subject = case dns
when 'linode'
Sunzi::DNS::Linode.new(config, cloud)
@@ -12,8 +14,12 @@
end
end
def method_missing(sym, *args, &block)
@subject.send sym, *args, &block
+ end
+
+ def respond_to?(method)
+ @subject.respond_to?(sym) || super
end
end
end