Class: Chef::ChefFS::FileSystem::Repository::CookbooksDir
- Inherits:
-
Repository::Directory
- Object
- Repository::Directory
- Chef::ChefFS::FileSystem::Repository::CookbooksDir
show all
- Defined in:
- lib/chef/chef_fs/file_system/repository/cookbooks_dir.rb
Instance Method Summary
collapse
Instance Method Details
#chefignore ⇒ Object
30
31
32
33
34
|
# File 'lib/chef/chef_fs/file_system/repository/cookbooks_dir.rb', line 30
def chefignore
@chefignore ||= Chef::Cookbook::Chefignore.new(file_path)
rescue Errno::EISDIR, Errno::EACCES
end
|
#write_cookbook(cookbook_path, cookbook_version_json, from_fs) ⇒ Object
36
37
38
39
|
# File 'lib/chef/chef_fs/file_system/repository/cookbooks_dir.rb', line 36
def write_cookbook(cookbook_path, cookbook_version_json, from_fs)
cookbook_name = File.basename(cookbook_path)
make_child_entry(cookbook_name).write(cookbook_path, cookbook_version_json, from_fs)
end
|