Sha256: 50482be4be501fee40f60334862393b68c886753638fa213110e656cdc244537
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
require "chef/chef_fs/data_handler/data_handler_base" class Chef module ChefFS module DataHandler class PolicyGroupDataHandler < DataHandlerBase def normalize(policy_group, entry) defaults = { "name" => remove_dot_json(entry.name), "policies" => {}, } result = normalize_hash(policy_group, defaults) result.delete("uri") # not useful data result end def verify_integrity(object_data, entry, &on_error) if object_data["policies"].empty? on_error.call("Policy group #{object_data["name"]} does not have any policies in it.") end end 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/policy_group_data_handler.rb |
chef-12.7.2-universal-mingw32 | lib/chef/chef_fs/data_handler/policy_group_data_handler.rb |