Sha256: b84661e46b33f3f8865f21c72965126738ec0d326297291a3974bafeaf9b31f7

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

require_relative '../lib/progressrus'
require 'rake'

namespace :progressrus do
  namespace :store do
    desc "Flushes the current Progressrus.store."
    task :flush, :environment do |t, args|
      scope = *args
      raise ArgumentError.new("Must pass [scope] to progressrus:store:flush[scope(,parts)] task.") unless scope.length > 0
      Progressrus.stores[:redis].flush(scope) if Progressrus.stores[:redis]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
progressrus-1.0.3 tasks/redis_store.rake
progressrus-1.0.2 tasks/redis_store.rake
progressrus-1.0.1 tasks/redis_store.rake
progressrus-1.0.0 tasks/redis_store.rake