lib/puppet/resource/catalog.rb
def make_default_resources
    # We have to add the resources to the catalog, or else they won't get cleaned up after
    # the transaction.

    # First create the default scheduling objects
    Puppet::Type.type(:schedule).mkdefaultschedules.each { |res| add_resource(res) unless resource(res.ref) }

    # And filebuckets
    if bucket = Puppet::Type.type(:filebucket).mkdefaultbucket
      add_resource(bucket) unless resource(bucket.ref)
    end
  end
# Make the default objects necessary for function.
Make the default objects necessary for function.
Make the default objects necessary for function .
def make_default_resources
    Puppet::Type.type(:schedule).mkdefaultschedules.each { |res| add_resource(res) unless resource(res.ref) }
    if bucket = Puppet::Type.type(:filebucket).mkdefaultbucket
      add_resource(bucket) unless resource(bucket.ref)
    end
  end
def make_default_resources Puppet :: Type . type ( :schedule ) . mkdefaultschedules . each { | res | add_resource ( res ) unless resource ( res . ref ) } if bucket = Puppet :: Type . type ( :filebucket ) . mkdefaultbucket add_resource ( bucket ) unless resource ( bucket . ref ) end end
Make the default objects necessary for function.
Make the default objects necessary for function .
# We have to add the resources to the catalog, or else they won't get cleaned up after # the transaction. # First create the default scheduling objects # And filebuckets