summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-06-22 18:01:03 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-06-22 18:01:03 -0700
commitd5d846d2cfb8726f1480caa9ebe71b5fca2af6fc (patch)
treef782aaaecc993fc7fa9c29aeee7e38363c1d3a85
parentd2fc53acfea4fef382e19a7c68e5a0f8b1748730 (diff)
parentcccd342d1cac66771e4806827dfb6a31e4d3c05c (diff)
downloadchef-d5d846d2cfb8726f1480caa9ebe71b5fca2af6fc.tar.gz
Merge pull request #3562 from coderanger/patch-2
Re-add #priority.
-rw-r--r--lib/chef/platform/priority_map.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/platform/priority_map.rb b/lib/chef/platform/priority_map.rb
index 3608975b51..d559eece78 100644
--- a/lib/chef/platform/priority_map.rb
+++ b/lib/chef/platform/priority_map.rb
@@ -3,6 +3,10 @@ require 'chef/node_map'
class Chef
class Platform
class PriorityMap < Chef::NodeMap
+ def priority(resource_name, priority_array, *filter)
+ set_priority_array(resource_name.to_sym, priority_array, *filter)
+ end
+
# @api private
def get_priority_array(node, key)
get(node, key)