Method: Puppet::Indirector::Indirection.model

Defined in:
lib/puppet/indirector/indirection.rb

.model(name) ⇒ Object

Find an indirected model by name. This is provided so that Terminus classes can specifically hook up with the indirections they are associated with.



33
34
35
36
# File 'lib/puppet/indirector/indirection.rb', line 33

def self.model(name)
  return nil unless match = @@indirections.find { |i| i.name == name }
  match.model
end