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