Sha256: 3455a733d75984cdfaa5bb2e0d19426a82bc86c7361dc867935ad5ad759d4542

Contents?: true

Size: 691 Bytes

Versions: 16

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # This class was created for use in rake tasks and db/seeds.rb.  It generates
  # required repository metadata including Admin Set and User collection types and
  # the default admin set.
  #
  # Seeders of required data are non-destructive.  If the data already exists,
  # it will not be replaced.
  class RequiredDataSeeder
    attr_accessor :logger

    def initialize(logger: Logger.new(STDOUT))
      @logger = logger
    end

    def generate_seed_data
      Hyrax::RequiredDataSeeders::CollectionTypeSeeder.generate_seeds(logger: logger)
      Hyrax::RequiredDataSeeders::CollectionSeeder.generate_seeds(logger: logger)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hyrax-5.0.2 app/utils/hyrax/required_data_seeder.rb
hyrax-5.0.1 app/utils/hyrax/required_data_seeder.rb
hyrax-5.0.0 app/utils/hyrax/required_data_seeder.rb
hyrax-5.0.0.rc3 app/utils/hyrax/required_data_seeder.rb
hyrax-5.0.0.rc2 app/utils/hyrax/required_data_seeder.rb
hyrax-5.0.0.rc1 app/utils/hyrax/required_data_seeder.rb
hyrax-3.6.0 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0.rc3 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0.rc2 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0.rc1 app/utils/hyrax/required_data_seeder.rb
hyrax-3.5.0 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0.beta2 app/utils/hyrax/required_data_seeder.rb
hyrax-3.4.2 app/utils/hyrax/required_data_seeder.rb
hyrax-4.0.0.beta1 app/utils/hyrax/required_data_seeder.rb
hyrax-3.4.1 app/utils/hyrax/required_data_seeder.rb