module Mumukit::Platform

Constants

CORE_MODELS
VERSION

Public Class Methods

bibliotheca_bridge() click to toggle source
# File lib/mumukit/platform/bridge.rb, line 2
def self.bibliotheca_bridge
  Mumukit::Bridge::Bibliotheca.new(config.bibliotheca_api_url)
end
defaults() click to toggle source
# File lib/mumukit/platform.rb, line 14
def self.defaults
  struct.tap do |config|
    domain = Mumukit::Platform::Domain.from_env

    config.laboratory_url = ENV['MUMUKI_LABORATORY_URL'] || "http://#{domain}"
    config.thesaurus_url = ENV['MUMUKI_THESAURUS_URL'] || "http://thesaurus.#{domain}"
    config.bibliotheca_ui_url = ENV['MUMUKI_BIBLIOTHECA_UI_URL'] || "http://bibliotheca.#{domain}/#/"
    config.bibliotheca_api_url = ENV['MUMUKI_BIBLIOTHECA_API_URL'] || "http://bibliotheca-api.#{domain}"
    config.classroom_ui_url = ENV['MUMUKI_CLASSROOM_UI_URL'] || "http://classroom.#{domain}/#/"
    config.classroom_api_url = ENV['MUMUKI_CLASSROOM_API_URL'] || "http://classroom-api.#{domain}"
    config.organization_mapping = Mumukit::Platform::OrganizationMapping.from_env
  end
end
thesaurus_bridge() click to toggle source
# File lib/mumukit/platform/bridge.rb, line 6
def self.thesaurus_bridge
  Mumukit::Bridge::Thesaurus.new(config.thesaurus_url)
end