Class: Chef::ChefFS::FileSystem::Repository::ClientKeysDir

Inherits:
Directory
  • Object
show all
Defined in:
lib/chef/chef_fs/file_system/repository/client_keys_dir.rb

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

Returns:

  • (Boolean)


29
30
31
# File 'lib/chef/chef_fs/file_system/repository/client_keys_dir.rb', line 29

def can_have_child?(name, is_dir)
  is_dir && !name.start_with?(".")
end