Sha256: 2ca7bc6d2378139471c66af81aaf107ccf6abf53156e87812503aaf6faa98190

Contents?: true

Size: 592 Bytes

Versions: 100

Compression:

Stored size: 592 Bytes

Contents

require "yaml"

module CanvasSync
  module Processors
    # Base report processing class
    class ReportProcessor
      def mapping
        @mapping ||= begin
          mapping = YAML.load_file(File.join(__dir__, "model_mappings.yml")).deep_symbolize_keys!
          override_filepath = Rails.root.join("config/canvas_sync_provisioning_mapping.yml")

          if File.file?(override_filepath)
            override = YAML.load_file(override_filepath).deep_symbolize_keys!
            mapping = mapping.merge(override)
          end

          mapping
        end
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

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