Module: Mumukit::Platform
- Extended by:
- Core::Configurable, WithApplications, WithOrganization, WithOrganizationMapping, WithWebFramework
- Defined in:
- lib/mumukit/platform/version.rb,
lib/mumukit/platform/bridge.rb,
lib/mumukit/platform.rb,
lib/mumukit/platform.rb
Defined Under Namespace
Modules: Course, Domain, Global, Locale, Notifiable, Organization, OrganizationMapping, User, WebFramework, WithApplications, WithOrganization, WithOrganizationMapping, WithWebFramework Classes: Application, Model
Constant Summary collapse
- VERSION =
'7.0.1'
- CORE_MODELS =
[:organization, :user, :course]
Class Method Summary collapse
Methods included from WithApplications
application_for, bibliotheca_api, bibliotheca_ui, classroom_api, classroom_ui, laboratory
Methods included from WithOrganization
current_organization, current_organization_name
Methods included from WithOrganizationMapping
implicit_organization?, map_organization_routes!, organization_name
Class Method Details
.bibliotheca_bridge ⇒ Object
2 3 4 |
# File 'lib/mumukit/platform/bridge.rb', line 2 def self.bibliotheca_bridge Mumukit::Bridge::Bibliotheca.new(config.bibliotheca_api_url) end |
.defaults ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# 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 |