# File lib/chef/node.rb, line 206 def find_file(fqdn) host_parts = fqdn.split(".") hostname = host_parts[0] [fqdn, hostname, "default"].each { |fname| node_file = File.join(Chef::Config[:node_path], "#{fname.to_s}.rb") return self.from_file(node_file) if File.exists?(node_file) } raise ArgumentError, "Cannot find a node matching #{fqdn}, not even with default.rb!" end