diff options
Diffstat (limited to 'lib/chef/cookbook_manifest.rb')
-rw-r--r-- | lib/chef/cookbook_manifest.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/cookbook_manifest.rb b/lib/chef/cookbook_manifest.rb index 125f353d21..526c183339 100644 --- a/lib/chef/cookbook_manifest.rb +++ b/lib/chef/cookbook_manifest.rb @@ -160,6 +160,14 @@ class Chef @manifest_records_by_path = extract_manifest_records_by_path(@manifest) end + # @api private + # takes a list of hashes + def add_files_to_manifest(files) + manifest[:all_files].concat(Array(files)) + @checksums = extract_checksums_from_manifest(@manifest) + @manifest_records_by_path = extract_manifest_records_by_path(@manifest) + end + def files_for(part) return root_files if part.to_s == "root_files" manifest[:all_files].select do |file| |