Sha256: 62d969a86dd769f1d3995719064be1cc38823dacf4ab277e0880cf028ce534d1
Contents?: true
Size: 885 Bytes
Versions: 2
Compression:
Stored size: 885 Bytes
Contents
require "chef/chef_fs/data_handler/data_handler_base" require "chef/node" class Chef module ChefFS module DataHandler class NodeDataHandler < DataHandlerBase 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 def preserve_key?(key) return key == "name" end def chef_class Chef::Node end # Nodes do not support .rb files end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chef-12.7.2 | lib/chef/chef_fs/data_handler/node_data_handler.rb |
chef-12.7.2-universal-mingw32 | lib/chef/chef_fs/data_handler/node_data_handler.rb |