Sha256: 50cb5b3eff20fd94e613e6799dc092eec2427271b0ab7bf7cf797d2b9c331219

Contents?: true

Size: 375 Bytes

Versions: 408

Compression:

Stored size: 375 Bytes

Contents

# Assign a random priority to items.
#
# @api private
class Puppet::Graph::RandomPrioritizer < Puppet::Graph::Prioritizer
  def generate_priority_for(key)
    if priority_of(key).nil?
      record_priority_for(key, SecureRandom.uuid)
    else
      priority_of(key)
    end
  end

  def generate_priority_contained_in(container, key)
    generate_priority_for(key)
  end
end

Version data entries

408 entries across 408 versions & 3 rubygems

Version Path
puppet-5.5.6-universal-darwin lib/puppet/graph/random_prioritizer.rb
bolt-0.21.7 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
bolt-0.21.6 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
bolt-0.21.5 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
bolt-0.21.4 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
bolt-0.21.3 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
puppet-5.5.3 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.3-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.3-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.3-universal-darwin lib/puppet/graph/random_prioritizer.rb
bolt-0.21.2 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
bolt-0.21.1 vendored/puppet/lib/puppet/graph/random_prioritizer.rb
puppet-5.5.2 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.2-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.2-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.2-universal-darwin lib/puppet/graph/random_prioritizer.rb
puppet-5.3.7 lib/puppet/graph/random_prioritizer.rb
puppet-5.3.7-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.3.7-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.3.7-universal-darwin lib/puppet/graph/random_prioritizer.rb