Class: Puppet::Graph::TitleHashPrioritizer

Inherits:
Prioritizer show all
Defined in:
lib/puppet/graph/title_hash_prioritizer.rb

Instance Method Summary collapse

Methods inherited from Prioritizer

#forget, #initialize, #priority_of, #record_priority_for

Constructor Details

This class inherits a constructor from Puppet::Graph::Prioritizer

Instance Method Details

#generate_priority_contained_in(container, resource) ⇒ Object



13
14
15
# File 'lib/puppet/graph/title_hash_prioritizer.rb', line 13

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

#generate_priority_for(resource) ⇒ Object



8
9
10
11
# File 'lib/puppet/graph/title_hash_prioritizer.rb', line 8

def generate_priority_for(resource)
  record_priority_for(resource,
                      Digest::SHA1.hexdigest("NaCl, MgSO4 (salts) and then #{resource.ref}"))
end