Sha256: 8b411ffca81c40ddc299431bc320d3836239e7429abffbde7b52499e214d80b4

Contents?: true

Size: 882 Bytes

Versions: 21

Compression:

Stored size: 882 Bytes

Contents

ActiveFedora.fedora.connection.send(:init_base_path)

puts "\n== Creating default collection types"
Hyrax::CollectionType.find_or_create_default_collection_type
Hyrax::CollectionType.find_or_create_admin_set_type

puts "\n== Loading workflows"
Hyrax::Workflow::WorkflowImporter.load_workflows
errors = Hyrax::Workflow::WorkflowImporter.load_errors
abort("Failed to process all workflows:\n  #{errors.join('\n  ')}") unless errors.empty?

puts "\n== Creating default admin set"
admin_set_id = Hyrax::AdminSetCreateService.find_or_create_default_admin_set.id.to_s

# I have found that when I come back to a development
# environment, that I may have an AdminSet in Fedora, but it is
# not indexed in Solr.  This remediates that situation by
# ensuring we have an indexed AdminSet
puts "\n== Ensuring the found or created admin set is indexed"
AdminSet.find(admin_set_id).update_index

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyrax-5.0.4 db/seeds.rb
hyrax-5.0.3 db/seeds.rb
hyrax-5.0.2 db/seeds.rb
hyrax-5.0.1 db/seeds.rb
hyrax-5.0.0 db/seeds.rb
hyrax-5.0.0.rc3 db/seeds.rb
hyrax-5.0.0.rc2 db/seeds.rb
hyrax-5.0.0.rc1 db/seeds.rb
hyrax-3.6.0 db/seeds.rb
hyrax-4.0.0 db/seeds.rb
hyrax-4.0.0.rc3 db/seeds.rb
hyrax-4.0.0.rc2 db/seeds.rb
hyrax-4.0.0.rc1 db/seeds.rb
hyrax-3.5.0 db/seeds.rb
hyrax-4.0.0.beta2 db/seeds.rb
hyrax-3.4.2 db/seeds.rb
hyrax-4.0.0.beta1 db/seeds.rb
hyrax-3.4.1 db/seeds.rb
hyrax-3.4.0 db/seeds.rb
hyrax-3.3.0 db/seeds.rb