# File lib/puppet/network/rights.rb, line 28 28: def allowed?(name, *args) 29: begin 30: fail_on_deny(name, :node => args[0], :ip => args[1]) 31: rescue AuthorizationError 32: return false 33: rescue ArgumentError 34: # the namespace contract says we should raise this error 35: # if we didn't find the right acl 36: raise 37: end 38: return true 39: end