Sha256: f156918c978c9fc6f92052b2e3050101187f948b6f8947a176e542be03a02f31

Contents?: true

Size: 477 Bytes

Versions: 25

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true
namespace :hyrax do
  namespace :workflow do
    desc "Load workflow configuration into the database"
    task load: :environment do
      logger = Logger.new(STDOUT)
      logger.level = Logger::DEBUG
      Hyrax::Workflow::WorkflowImporter.load_workflows(logger: logger)
      errors = Hyrax::Workflow::WorkflowImporter.load_errors
      abort("Failed to process all workflows:\n  #{errors.join('\n  ')}") unless errors.empty?
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/tasks/workflow.rake
hyrax-5.0.0 lib/tasks/workflow.rake
hyrax-5.0.0.rc3 lib/tasks/workflow.rake
hyrax-5.0.0.rc2 lib/tasks/workflow.rake
hyrax-5.0.0.rc1 lib/tasks/workflow.rake
hyrax-3.6.0 lib/tasks/workflow.rake
hyrax-4.0.0 lib/tasks/workflow.rake
hyrax-4.0.0.rc3 lib/tasks/workflow.rake
hyrax-4.0.0.rc2 lib/tasks/workflow.rake
hyrax-4.0.0.rc1 lib/tasks/workflow.rake
hyrax-3.5.0 lib/tasks/workflow.rake
hyrax-4.0.0.beta2 lib/tasks/workflow.rake
hyrax-3.4.2 lib/tasks/workflow.rake
hyrax-4.0.0.beta1 lib/tasks/workflow.rake
hyrax-3.4.1 lib/tasks/workflow.rake
hyrax-3.4.0 lib/tasks/workflow.rake
hyrax-3.3.0 lib/tasks/workflow.rake
hyrax-3.2.0 lib/tasks/workflow.rake
hyrax-3.1.0 lib/tasks/workflow.rake
hyrax-3.0.2 lib/tasks/workflow.rake