Skip to content

Commit

Permalink
Add upload_all_s3 task
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Thomas committed Sep 18, 2015
1 parent 9078f40 commit 2e90f29
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2e90f29

Please sign in to comment.