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.22 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.22-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.22-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.22-universal-darwin lib/puppet/graph/random_prioritizer.rb
puppet-5.5.21 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.21-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.21-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.21-universal-darwin lib/puppet/graph/random_prioritizer.rb
puppet-5.5.20 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.20-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.20-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.20-universal-darwin lib/puppet/graph/random_prioritizer.rb
puppet-5.5.19 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.19-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.19-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.19-universal-darwin lib/puppet/graph/random_prioritizer.rb
puppet-5.5.18 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.18-x86-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.18-x64-mingw32 lib/puppet/graph/random_prioritizer.rb
puppet-5.5.18-universal-darwin lib/puppet/graph/random_prioritizer.rb