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.5 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.5.beta2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.5.beta1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.4 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.3.beta3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.3.beta2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.3.beta1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta15 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta14 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta13 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta12 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta11 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta10 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta9 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta8 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta7 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.17.0.beta6 lib/canvas_sync/processors/report_processor.rb