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-4.10.12 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.12-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.12-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.12-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.21.0 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.20.7 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.20.6 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.20.5 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.20.3 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.20.2 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
bolt-0.19.1 vendored/puppet/lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.1 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.1-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.1-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.5.1-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.11 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.11-x86-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.11-x64-mingw32 lib/puppet/graph/title_hash_prioritizer.rb
puppet-4.10.11-universal-darwin lib/puppet/graph/title_hash_prioritizer.rb
puppet-5.3.6 lib/puppet/graph/title_hash_prioritizer.rb