Method: Chef::ChefFS::DataHandler::PolicyGroupDataHandler#verify_integrity
- Defined in:
- lib/chef/chef_fs/data_handler/policy_group_data_handler.rb
#verify_integrity(object_data, entry) {|s| ... } ⇒ Object
Verify that the JSON hash for this type has a key that matches its name.
24 25 26 27 28 |
# File 'lib/chef/chef_fs/data_handler/policy_group_data_handler.rb', line 24 def verify_integrity(object_data, entry) if object_data["policies"].empty? yield("Policy group #{object_data["name"]} does not have any policies in it.") end end |