Sha256: d91328e24e966014cc6a338e89cae19a9d883afee80bed0d147c05399c7a4989

Contents?: true

Size: 316 Bytes

Versions: 29

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true
namespace :hyrax do
  desc 'Print a count of each object type'
  task count: [:environment] do
    Rails.application.eager_load!
    puts "Number of objects in the repository:"
    ActiveFedora::Base.descendants.each do |model|
      puts "  #{model}: #{model.count}"
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 lib/tasks/hyrax.rake
hyrax-5.0.4 lib/tasks/hyrax.rake
hyrax-5.0.3 lib/tasks/hyrax.rake
hyrax-5.0.2 lib/tasks/hyrax.rake
hyrax-5.0.1 lib/tasks/hyrax.rake
hyrax-5.0.0 lib/tasks/hyrax.rake
hyrax-5.0.0.rc3 lib/tasks/hyrax.rake
hyrax-5.0.0.rc2 lib/tasks/hyrax.rake
hyrax-5.0.0.rc1 lib/tasks/hyrax.rake
hyrax-3.6.0 lib/tasks/hyrax.rake
hyrax-4.0.0 lib/tasks/hyrax.rake
hyrax-4.0.0.rc3 lib/tasks/hyrax.rake
hyrax-4.0.0.rc2 lib/tasks/hyrax.rake
hyrax-4.0.0.rc1 lib/tasks/hyrax.rake
hyrax-3.5.0 lib/tasks/hyrax.rake
hyrax-4.0.0.beta2 lib/tasks/hyrax.rake
hyrax-3.4.2 lib/tasks/hyrax.rake
hyrax-4.0.0.beta1 lib/tasks/hyrax.rake
hyrax-3.4.1 lib/tasks/hyrax.rake
hyrax-3.4.0 lib/tasks/hyrax.rake