cartodb-4.42/lib/tasks/common_data.rake

11 lines
365 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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