lib/puppet/type/transition.rb
def autorequire(rel_catalog = nil)
    reqs = super

    [ @parameters[:prior_to].value,
      @parameters[:resource].value
    ].flatten.each do |rel|
      reqs << Puppet::Relationship::new(self, catalog.resource(rel.to_s))
    end

    reqs
  end
# This type needs to implement an "autobefore" kind of behavior. Currently
# the Puppet type system only supports autorequire, so we achieve autobefore
# by hijacking autorequire.
This type needs to implement an "autobefore" kind of behavior. Currently
the Puppet type system only supports autorequire, so we achieve autobefore
by hijacking autorequire.
This type needs to implement an " autobefore " kind of behavior . Currently the Puppet type system only supports autorequire so we achieve autobefore by hijacking autorequire .
def autorequire(rel_catalog = nil)
    reqs = super
    [ @parameters[:prior_to].value,
      @parameters[:resource].value
    ].flatten.each do |rel|
      reqs << Puppet::Relationship::new(self, catalog.resource(rel.to_s))
    end
    reqs
  end
def autorequire ( rel_catalog = nil ) reqs = super [ @parameters [ :prior_to ] . value , @parameters [ :resource ] . value ] . flatten . each do | rel | reqs << Puppet :: Relationship :: new ( self , catalog . resource ( rel . to_s ) ) end reqs end
This type needs to implement an "autobefore" kind of behavior.
This type needs to implement an " autobefore " kind of behavior .
rel_catalog