libraries/alternate_search.rb
# Searches for nodes using partial_search
#
# The search will be restricted to the current environment by default
#
# @param search [Hash] Passed to search_to_string
# @param options [Hash] Options to pass to partial_search
Searches for nodes using partial_search
The search will be restricted to the current environment by default
Searches for nodes using partial_search The search will be restricted to the current environment by default
def search_nodes(search, options = {}, &block)
		unless search.key? :chef_environment
			search[:chef_environment] = node.chef_environment
		end
		partial_search(:node, search_to_string(search), options, &block)
	end
def search_nodes ( search , options = { } , & block ) unless search . key? :chef_environment search [ :chef_environment ] = node . chef_environment end partial_search ( :node , search_to_string ( search ) , options , & block ) end
Searches for nodes using partial_search
The search will be restricted to the current environment by default
Searches for nodes using partial_search The search will be restricted to the current environment by default
search
Passed to search_to_string
Passed to search_to_string
options
Options to pass to partial_search
Options to pass to partial_search
block
<not_specific>