Method: Puppet::Indirector::Indirection#head
- Defined in:
- lib/puppet/indirector/indirection.rb
#head(key, options = {}) ⇒ Object
Search for an instance in the appropriate terminus, and return a boolean indicating whether the instance was found.
226 227 228 229 230 231 232 233 |
# File 'lib/puppet/indirector/indirection.rb', line 226 def head(key, ={}) request = request(:head, key, nil, ) terminus = prepare(request) # Look in the cache first, then in the terminus. Force the result # to be a boolean. !!(find_in_cache(request) || terminus.head(request)) end |