Sha256: dd56eced633118ac5961540e0c877d4080fbcd330ddd5de2cb06997d26a933c4

Contents?: true

Size: 535 Bytes

Versions: 761

Compression:

Stored size: 535 Bytes

Contents

# Base, template method, class for Prioritizers. This provides the basic
# tracking facilities used.
#
# @api private
class Puppet::Graph::Prioritizer
  def initialize
    @priority = {}
  end

  def forget(key)
    @priority.delete(key)
  end

  def record_priority_for(key, priority)
    @priority[key] = priority
  end

  def generate_priority_for(key)
    raise NotImplementedError
  end

  def generate_priority_contained_in(container, key)
    raise NotImplementedError
  end

  def priority_of(key)
    @priority[key]
  end
end

Version data entries

761 entries across 761 versions & 3 rubygems

Version Path
puppet-7.34.0 lib/puppet/graph/prioritizer.rb
puppet-7.34.0-x86-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.34.0-x64-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.34.0-universal-darwin lib/puppet/graph/prioritizer.rb
puppet-7.33.0 lib/puppet/graph/prioritizer.rb
puppet-7.33.0-x86-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.33.0-x64-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.33.0-universal-darwin lib/puppet/graph/prioritizer.rb
puppet-7.32.1 lib/puppet/graph/prioritizer.rb
puppet-7.32.1-x86-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.32.1-x64-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.32.1-universal-darwin lib/puppet/graph/prioritizer.rb
puppet-7.31.0 lib/puppet/graph/prioritizer.rb
puppet-7.31.0-x86-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.31.0-x64-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.31.0-universal-darwin lib/puppet/graph/prioritizer.rb
puppet-7.30.0 lib/puppet/graph/prioritizer.rb
puppet-7.30.0-x86-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.30.0-x64-mingw32 lib/puppet/graph/prioritizer.rb
puppet-7.30.0-universal-darwin lib/puppet/graph/prioritizer.rb