Method: Puppet::Application::Device#find_resources

Defined in:
lib/puppet/application/device.rb

#find_resources(type, name) ⇒ Object



397
398
399
400
401
402
403
404
405
# File 'lib/puppet/application/device.rb', line 397

def find_resources(type, name)
  key = [type, name].join('/')

  if name
    [Puppet::Resource.indirection.find(key)]
  else
    Puppet::Resource.indirection.search(key, {})
  end
end