# File lib/puppet/transaction.rb, line 488
488:     def prepare
489:         # Now add any dynamically generated resources
490:         generate()
491: 
492:         # Then prefetch.  It's important that we generate and then prefetch,
493:         # so that any generated resources also get prefetched.
494:         prefetch()
495: 
496:         # This will throw an error if there are cycles in the graph.
497:         @sorted_resources = relationship_graph.topsort
498:     end