Method: Puppet::Graph::RelationshipGraph#enqueue_roots
- Defined in:
- lib/puppet/graph/relationship_graph.rb
#enqueue_roots ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Enqueue the initial set of resources, those with no dependencies.
61 62 63 64 65 66 |
# File 'lib/puppet/graph/relationship_graph.rb', line 61 def enqueue_roots vertices.each do |v| @blockers[v] = direct_dependencies_of(v).length enqueue(v) if @blockers[v] == 0 end end |