module Mumuki::Domain::Seed
Constants
- MAIN_CONTENT_ORGANIZATIONS
Those are organizations that provide content that was actually curated by the
Mumuki
Project and as such must be supported by each platform release
Public Class Methods
contents_syncer()
click to toggle source
# File lib/mumuki/domain/seed.rb, line 18 def self.contents_syncer Mumukit::Sync::Syncer.new(Mumuki::Domain::Store::Bibliotheca.new(Mumukit::Platform.bibliotheca_bridge)) end
import_languages!()
click to toggle source
# File lib/mumuki/domain/seed.rb, line 30 def self.import_languages! self.languages_syncer.import_all! end
import_main_contents!()
click to toggle source
# File lib/mumuki/domain/seed.rb, line 26 def self.import_main_contents! self.contents_syncer.import_all! /^#{MAIN_CONTENT_ORGANIZATIONS.join('|')}\/.*$/i end
languages_syncer()
click to toggle source
# File lib/mumuki/domain/seed.rb, line 22 def self.languages_syncer Mumukit::Sync::Syncer.new(Mumuki::Domain::Store::Thesaurus.new(Mumukit::Platform.thesaurus_bridge)) end