Sha256: 1d397eb1379c0a7702aa4bdcae608e8c7a6f45ef7de6f571073d115158264936

Contents?: true

Size: 542 Bytes

Versions: 408

Compression:

Stored size: 542 Bytes

Contents

# Prioritize keys, which must be Puppet::Resources, based on a static hash of
# the key's ref. This prioritizer does not take containment into account.
#
# @api private
require 'digest/sha1'

class Puppet::Graph::TitleHashPrioritizer < Puppet::Graph::Prioritizer
  def generate_priority_for(resource)
    record_priority_for(resource,
                        Digest::SHA1.hexdigest("NaCl, MgSO4 (salts) and then #{resource.ref}"))
  end

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

Version data entries

408 entries across 408 versions & 3 rubygems

Version Path
puppet-5.5.12-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.12-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.10 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.10-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.10-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.10-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.8 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.8-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.8-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.8-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.7 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.7-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.7-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.7-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.23.0 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.22.0 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.21.8 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.6 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.6-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.6-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb