class Puppet::Graph::Prioritizer

Base, template method, class for Prioritizers. This provides the basic tracking facilities used.

@api private

Public Instance Methods

forget(key) click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 10
def forget(key)
  @priority.delete(key)
end
generate_priority_contained_in(container, key) click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 22
def generate_priority_contained_in(container, key)
  raise NotImplementedError
end
generate_priority_for(key) click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 18
def generate_priority_for(key)
  raise NotImplementedError
end
priority_of(key) click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 26
def priority_of(key)
  @priority[key]
end
record_priority_for(key, priority) click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 14
def record_priority_for(key, priority)
  @priority[key] = priority
end

Public Class Methods

new() click to toggle source
# File lib/puppet/graph/prioritizer.rb, line 6
def initialize
  @priority = {}
end