lib/smart_proxy_dns_netdot/dns_netdot_main.rb
def create_a_record(fqdn, ip)
      case a_record_conflicts(fqdn, ip) #returns -1, 0, 1
        when 1
          raise(Proxy::Dns::Collision, "'#{fqdn} 'is already in use")
        when 0 then
          return nil
        else
          # FIXME: add a forward 'A' record with fqdn, ip
      end
    end
# Calls to these methods are guaranteed to have non-nil parameters
Calls to these methods are guaranteed to have non-nil parameters
Calls to these methods are guaranteed to have non - nil parameters
def create_a_record(fqdn, ip)
      case a_record_conflicts(fqdn, ip) 
        when 1
          raise(Proxy::Dns::Collision, "'#{fqdn} 'is already in use")
        when 0 then
          return nil
        else
      end
    end
def create_a_record ( fqdn , ip ) case a_record_conflicts ( fqdn , ip ) when 1 raise ( Proxy :: Dns :: Collision , "'#{fqdn} 'is already in use" ) when 0 then return nil else end end
Calls to these methods are guaranteed to have non-nil parameters
Calls to these methods are guaranteed to have non - nil parameters
#returns -1, 0, 1 # FIXME: add a forward 'A' record with fqdn, ip
fqdn
ip