Sha256: 853783567de6947735ba494eafc6b7e2cdb73b9e2d92f55c7a55fe4c68bb5f86

Contents?: true

Size: 737 Bytes

Versions: 32

Compression:

Stored size: 737 Bytes

Contents

require_relative "./report_processor"

module CanvasSync
  module Processors
    # Processes a context modules report using the bulk importer.
    #
    # @param report_file_path [String]
    # @param options [Hash]
    class ContextModuleItemsProcessor < ReportProcessor
      def self.process(report_file_path, _options, report_id)
        new(report_file_path, _options)
      end

      def initialize(report_file_path, options)
        CanvasSync::Importers::BulkImporter.import(
          report_file_path,
          mapping[:context_module_items][:report_columns],
          ContextModuleItem,
          mapping[:context_module_items][:conflict_target].to_sym,
          import_args: options
        )
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
canvas_sync-0.17.20 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.19 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.18 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.17.beta1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.16 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.15 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.14 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.13 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.12 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.10.beta2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.10.beta1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.8 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.8.beta4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.8.beta3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.8.beta2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.8.beta1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.7 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.7.beta1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.6 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.17.6.beta1 lib/canvas_sync/processors/context_module_items_processor.rb