# File lib/puppet/transaction.rb, line 265
265:   def prepare
266:     # Now add any dynamically generated resources
267:     generate
268: 
269:     # Then prefetch.  It's important that we generate and then prefetch,
270:     # so that any generated resources also get prefetched.
271:     prefetch
272: 
273:     # This will throw an error if there are cycles in the graph.
274:     @sorted_resources = relationship_graph.topsort
275:   end