Module: Magik::Domains
- Defined in:
- lib/magik/domains.rb
Overview
The domain module system for large apps, with boot-time boundary enforcement: a domain reaches another domain only through its published interface or events.
Implements: Build order step 12 — Domain module system of docs/idea/00-build-spec.md.
Planned DSL surface, copied from the spec:
* `domains/<name>/domain.rb declares depends_on, exposes, publishes_events`
* `boot-time enforcement of cross-domain access`
Status: Not implemented — spec only. Every entry point below raises NotImplementedError. Nothing here reads config, touches a database or emits a byte of HTML.
Constant Summary collapse
- SPEC_PHASE =
The build-spec phase this subsystem implements.
"Build order step 12 — Domain module system"- DSL_SURFACE =
The DSL this subsystem will expose, verbatim from the spec.
[ "domains/<name>/domain.rb declares depends_on, exposes, publishes_events", "boot-time enforcement of cross-domain access" ].freeze
- STATUS =
Implementation status of this subsystem.
"Not implemented — spec only"
Class Method Summary collapse
-
.define(*_args, **_options) ⇒ void
Entry point for the Domains DSL.
Class Method Details
.define(*_args, **_options) ⇒ void
This method returns an undefined value.
Entry point for the Domains DSL.
41 42 43 |
# File 'lib/magik/domains.rb', line 41 def self.define(*_args, **) raise NotImplementedError, "Magik::Domains is spec-only; see docs/idea/00-build-spec.md" end |