Sha256: 8e07524d30993958b64e0d0a3a029982f28e7fc013ce36d577335fa0d37e40dd
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
class Matchd::Rule::Fail < Matchd::Rule def initialize(options) super @fail = options.fetch("fail") end def visit!(_server, _name, _resource_class, transaction) transaction.fail!(rcode) end def rcode @rcode ||= case @fail when Symbol, String then Resolv::DNS::RCode.const_get(@fail) else @fail end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matchd-0.1.0 | lib/matchd/rule/fail.rb |