cartodb-4.29/lib/tasks/common_data.rake
2020-06-15 10:58:47 +08:00

11 lines
365 B
Ruby

namespace :cartodb do
namespace :common_data do
desc 'Generates datasets assets and upload them to Amazon S3'
task :generate_s3_assets, [:all_public] => :environment do |t, args|
all_public = args[:all_public].blank? ? false : args[:all_public]
common_data = CommonData.new
common_data.upload_datasets_to_s3 all_public
end
end
end