Class: Chef::Platform::PriorityMap
- Defined in:
- lib/chef/platform/priority_map.rb
Direct Known Subclasses
Constant Summary
Constants inherited from NodeMap
Instance Method Summary collapse
- #get_priority_array(node, key) ⇒ Object private
- #priority(resource_name, priority_array, *filter) ⇒ Object
- #set_priority_array(key, priority_array, *filter, &block) ⇒ Object private
Methods inherited from NodeMap
#delete_canonical, #delete_class, #get, #list, #lock!, #locked?, #set
Instance Method Details
#get_priority_array(node, 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.
29 30 31 |
# File 'lib/chef/platform/priority_map.rb', line 29 def get_priority_array(node, key) get(node, key) end |
#priority(resource_name, priority_array, *filter) ⇒ Object
24 25 26 |
# File 'lib/chef/platform/priority_map.rb', line 24 def priority(resource_name, priority_array, *filter) set_priority_array(resource_name.to_sym, priority_array, *filter) end |
#set_priority_array(key, priority_array, *filter, &block) ⇒ 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.
34 35 36 37 38 |
# File 'lib/chef/platform/priority_map.rb', line 34 def set_priority_array(key, priority_array, *filter, &block) priority_array = Array(priority_array) set(key, priority_array, *filter, &block) priority_array end |