summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-13 10:17:10 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-15 09:37:43 -0800
commit4444eb70463a0e5f1090007300182a42a909f249 (patch)
tree49e1780a71295b83095adb18ad233c4d7863741c /lib
parent37cb1f8fd3eb988fd34d17d94e0d8a9eef05b27b (diff)
downloadchef-4444eb70463a0e5f1090007300182a42a909f249.tar.gz
Add local cookbook_artifacts
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/chef_fs/config.rb1
-rw-r--r--lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/config.rb b/lib/chef/chef_fs/config.rb
index dbba396ebb..29579be677 100644
--- a/lib/chef/chef_fs/config.rb
+++ b/lib/chef/chef_fs/config.rb
@@ -33,6 +33,7 @@ class Chef
"acls" => "acl",
"clients" => "client",
"cookbooks" => "cookbook",
+ "cookbook_artifacts" => "cookbook_artifact",
"containers" => "container",
"data_bags" => "data_bag",
"environments" => "environment",
diff --git a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
index 3cb3c914b2..6cd079120f 100644
--- a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
+++ b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
@@ -162,7 +162,7 @@ class Chef
return NonexistentFSObject.new(name, self)
end
case name
- when "cookbooks"
+ when "cookbooks", "cookbook_artifacts"
if versioned_cookbooks
dirs = paths.map { |path| ChefRepositoryFileSystemVersionedCookbooksDir.new(name, self, path) }
else