summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_uploader.rb
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-12-03 17:47:30 +0530
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-12-16 12:33:57 +0530
commit04e49260402ec061651af95f0508fce27edab5f2 (patch)
treeb8efa20d67c8eb242df4ce26828759f093ef23b8 /lib/chef/cookbook_uploader.rb
parent9c60c11df2116071f096a4e6fd2dd629f307944f (diff)
downloadchef-04e49260402ec061651af95f0508fce27edab5f2.tar.gz
Genrates metadata.json if not present and uploads it to chef server and deletes the local copy of it from chef repo
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib/chef/cookbook_uploader.rb')
-rw-r--r--lib/chef/cookbook_uploader.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/chef/cookbook_uploader.rb b/lib/chef/cookbook_uploader.rb
index 825ac354da..1745bcad78 100644
--- a/lib/chef/cookbook_uploader.rb
+++ b/lib/chef/cookbook_uploader.rb
@@ -46,12 +46,6 @@ class Chef
end
def upload_cookbooks
- cookbooks.each do |cookbook|
- next if cookbook.all_files.include?("#{cookbook.root_paths[0]}/metadata.json")
-
- generate_metadata_json(cookbook.name.to_s, cookbook)
- end
-
# Syntax Check
validate_cookbooks
# generate checksums of cookbook files and create a sandbox