Sha256: 17d2e478bacb0b593e88bc824498084ee26524364d5cc2691a43deb53d62351b
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 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.8.1 | lib/chef/chef_fs/data_handler/node_data_handler.rb |
chef-12.8.1-universal-mingw32 | lib/chef/chef_fs/data_handler/node_data_handler.rb |