Skip to content

Commit

Permalink
name change
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Aug 23, 2024
1 parent 4f995e4 commit 71cf417
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tasks/migrate_download_stats.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ require 'optparse'
require 'optparse/date'

namespace :migrate_download_stats do
desc 'list object ids for download stats migration'
task :list_ids, [:output_dir, :after] => :environment do |_t, _args|
desc 'output object record data for download stats migration into a csv'
task :list_record_data, [:output_dir, :after] => :environment do |_t, _args|
start_time = Time.now
puts "[#{start_time.utc.iso8601}] starting listing of ids"
puts "[#{start_time.utc.iso8601}] starting listing of record data"
options = {}

opts = OptionParser.new
opts.banner = 'Usage: bundle exec rake migrate_download_stats:list_ids -- [options]'
opts.banner = 'Usage: bundle exec rake migrate_download_stats:list_record_data -- [options]'
opts.on('-o', '--output-dir ARG', String, 'Directory list will be saved to') { |val| options[:output_dir] = val }
opts.on('-a', '--after ARG', String, 'List objects which have been updated after this timestamp') { |val| options[:after] = val }
args = opts.order!(ARGV) {}
Expand Down

0 comments on commit 71cf417

Please sign in to comment.