Class: Chef::ChefFS::FileSystem::Repository::AclsDir
- Defined in:
- lib/chef/chef_fs/file_system/repository/acls_dir.rb
Constant Summary collapse
- BARE_FILES =
%w{ organization.json root }.freeze
Instance Attribute Summary
Attributes inherited from Directory
#file_path, #name, #parent, #path
Instance Method Summary collapse
Methods inherited from Directory
#child, #children, #create, #create_child, #delete, #dir?, #dir_ls, #empty?, #exists?, #fs_entry_valid?, #initialize, #name_valid?, #path_for_printing, #root
Constructor Details
This class inherits a constructor from Chef::ChefFS::FileSystem::Repository::Directory
Instance Method Details
#can_have_child?(name, is_dir) ⇒ Boolean
33 34 35 |
# File 'lib/chef/chef_fs/file_system/repository/acls_dir.rb', line 33 def can_have_child?(name, is_dir) is_dir ? Chef::ChefFS::FileSystem::ChefServer::AclsDir::ENTITY_TYPES.include?(name) : BARE_FILES.include?(name) end |