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