Sha256: 1e84d06b16c51f1f260c03bad37a721083267132e8b607a0324108c9a1ffd274
Contents?: true
Size: 729 Bytes
Versions: 42
Compression:
Stored size: 729 Bytes
Contents
module CanvasSync module Jobs class SyncTermsJob < CanvasSync::Job # Syncs Terms using the Canvas API # # Terms are pre-synced so that provisioning reports can be scoped to term. # # @param job_chain [Hash] # @param options [Hash] def perform(job_chain, _options) CanvasSync.get_canvas_sync_client(job_chain[:global_options]).terms("self").all_pages!.each do |term_params| if job_chain[:global_options][:account_id] Term.create_or_update(term_params, job_chain[:global_options][:account_id]) else Term.create_or_update(term_params) end end CanvasSync.invoke_next(job_chain) end end end end
Version data entries
42 entries across 42 versions & 1 rubygems