PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/sequential_prioritizer.rb |
# This implements a priority in which keys are given values that will keep them
# in the same priority in which they priorities are requested. Nested
# structures (those in which a key is contained within another key) are
# preserved in such a way that child keys are after the parent and before the
# key after the parent.
#
# @api private
class Puppet::Graph::SequentialPrioritizer < Puppet::Graph::Prioritizer
def initialize
super
@container = {}
@count = Puppet::Graph::Key.new
end
def generate_priority_for(key)
if priority_of(key).nil?
@count = @count.next
record_priority_for(key, @count)
else
priority_of(key)
end
end
def generate_priority_contained_in(container, key)
@container[container] ||= priority_of(container).down
priority = @container[container].next
record_priority_for(key, priority)
@container[container] = priority
priority
end
end