# File lib/puppet/resource/catalog.rb, line 306 306: def make_default_resources 307: # We have to add the resources to the catalog, or else they won't get cleaned up after 308: # the transaction. 309: 310: # First create the default scheduling objects 311: Puppet::Type.type(:schedule).mkdefaultschedules.each { |res| add_resource(res) unless resource(res.ref) } 312: 313: # And filebuckets 314: if bucket = Puppet::Type.type(:filebucket).mkdefaultbucket 315: add_resource(bucket) unless resource(bucket.ref) 316: end 317: end