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.

See Also:

Constant Summary collapse

SPEC_PHASE =

The build-spec phase this subsystem implements.

Returns:

  • (String)
"Build order step 12 — Domain module system"
DSL_SURFACE =

The DSL this subsystem will expose, verbatim from the spec.

Returns:

  • (Array<String>)
[
  "domains/<name>/domain.rb declares depends_on, exposes, publishes_events",
  "boot-time enforcement of cross-domain access"
].freeze
STATUS =

Implementation status of this subsystem.

Returns:

  • (String)
"Not implemented — spec only"

Class Method Summary collapse

Class Method Details

.define(*_args, **_options) ⇒ void

This method returns an undefined value.

Entry point for the Domains DSL.

Parameters:

  • _args (Array)

    ignored

  • _options (Hash)

    ignored

Raises:

  • (NotImplementedError)

    always, until Build order step 12 lands



41
42
43
# File 'lib/magik/domains.rb', line 41

def self.define(*_args, **_options)
  raise NotImplementedError, "Magik::Domains is spec-only; see docs/idea/00-build-spec.md"
end