Class: Puppet::Graph::Prioritizer Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/graph/prioritizer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base, template method, class for Prioritizers. This provides the basic tracking facilities used.

API:

  • private

Direct Known Subclasses

SequentialPrioritizer

Instance Method Summary collapse

Constructor Details

#initializePrioritizer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Prioritizer.

API:

  • private



7
8
9
# File 'lib/puppet/graph/prioritizer.rb', line 7

def initialize
  @priority = {}
end

Instance Method Details

#forget(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



11
12
13
# File 'lib/puppet/graph/prioritizer.rb', line 11

def forget(key)
  @priority.delete(key)
end

#generate_priority_contained_in(container, key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

API:

  • private



23
24
25
# File 'lib/puppet/graph/prioritizer.rb', line 23

def generate_priority_contained_in(container, key)
  raise NotImplementedError
end

#generate_priority_for(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

API:

  • private



19
20
21
# File 'lib/puppet/graph/prioritizer.rb', line 19

def generate_priority_for(key)
  raise NotImplementedError
end

#priority_of(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



27
28
29
# File 'lib/puppet/graph/prioritizer.rb', line 27

def priority_of(key)
  @priority[key]
end

#record_priority_for(key, priority) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



15
16
17
# File 'lib/puppet/graph/prioritizer.rb', line 15

def record_priority_for(key, priority)
  @priority[key] = priority
end