class Chef::ChefFS::DataHandler::NodeDataHandler
Public Instance Methods
Source
# File lib/chef/chef_fs/data_handler/node_data_handler.rb, line 28 def chef_class Chef::Node end
Source
# File lib/chef/chef_fs/data_handler/node_data_handler.rb, line 8 def normalize(node, entry) result = normalize_hash(node, { "name" => remove_dot_json(entry.name), "json_class" => "Chef::Node", "chef_type" => "node", "chef_environment" => "_default", "override" => {}, "normal" => {}, "default" => {}, "automatic" => {}, "run_list" => [], }) result["run_list"] = normalize_run_list(result["run_list"]) result end
Source
# File lib/chef/chef_fs/data_handler/node_data_handler.rb, line 24 def preserve_key?(key) key == "name" end