Sha256: f99e29505d5e3c1f02bac89c1519c6484c7dc266a43a2ea24bea17b8e45d71e3

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

namespace :tally do
  desc "Sweep all outdated keys from the data store"
  task :sweep => :environment do
    Tally::Sweeper.sweep!
  end

  desc "Archive today's temporary keys into record entries in the database"
  task :archive => :environment do
    Tally::Archiver.archive!
  end

  desc "Archive yesterday's temporary keys into record entries in the database"
  task "archive:yesterday" => :environment do
    Tally::Archiver.archive! day: 1.day.ago
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tally-1.0.0.beta1 lib/tasks/tally_tasks.rake