Method: Chef::ChefFS::FileSystem::ChefRepositoryFileSystemCookbooksDir#initialize
- Defined in:
- lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb
#initialize(name, parent, file_path) ⇒ ChefRepositoryFileSystemCookbooksDir
Returns a new instance of ChefRepositoryFileSystemCookbooksDir.
27 28 29 30 31 32 33 34 35 |
# File 'lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb', line 27 def initialize(name, parent, file_path) super(name, parent, file_path) begin @chefignore = Chef::Cookbook::Chefignore.new(self.file_path) rescue Errno::EISDIR rescue Errno::EACCES # Work around a bug in Chefignore when chefignore is a directory end end |