Sha256: 18763504173b14065a79f77b0423ab4e0d5cb40e665c293f2a83094d086a8a7d
Contents?: true
Size: 806 Bytes
Versions: 9
Compression:
Stored size: 806 Bytes
Contents
require 'chef_fs/data_handler/data_handler_base' require 'chef/node' 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
Version data entries
9 entries across 9 versions & 1 rubygems