Method: Puppet::Type.eachautobefore

Defined in:
lib/puppet/type.rb

.eachautobefore {|type, block| ... } ⇒ void

This method returns an undefined value.

Provides iteration over added auto-requirements (see autobefore).

Yield Parameters:

  • type (String)

    the name of the type to autorequire an instance of

  • block (Proc)

    a block producing one or several dependencies to auto require (see autobefore).

Yield Returns:

  • (void)


2082
2083
2084
2085
2086
2087
# File 'lib/puppet/type.rb', line 2082

def self.eachautobefore
  @autobefores ||= {}
  @autobefores.each { |type,block|
    yield(type, block)
  }
end