From 2e90f2997c503bfddc65505b48dd9086bd99fbfa Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Fri, 18 Sep 2015 10:56:55 -0700 Subject: [PATCH] Add upload_all_s3 task --- Rakefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Rakefile b/Rakefile index edc0099fe..aa69b947c 100644 --- a/Rakefile +++ b/Rakefile @@ -66,6 +66,15 @@ task :upload_box, :metadata_file do |f, args| upload_to_atlas(metadata['name'], metadata['version'], metadata['providers']) end +desc 'Upload all boxes to S3 for all providers' +task :upload_all_s3 do + metadata_files.each do |metadata_file| + puts "Processing #{metadata_file} for upload." + Rake::Task['upload_box_s3'].invoke(metadata_file) + Rake::Task['upload_box_s3'].reenable + end +end + desc 'Upload box files to S3 for all providers' task :upload_box_s3, :metadata_file do |f, args| metadata = box_metadata(args[:metadata_file])