Class: Textus::Store::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/store/container.rb

Defined Under Namespace

Classes: Coordination, Infrastructure

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(infra, coord) ⇒ Container

Returns a new instance of Container.



13
14
15
16
# File 'lib/textus/store/container.rb', line 13

def initialize(infra, coord)
  @infra = infra
  @coord = coord
end

Instance Attribute Details

#coordObject (readonly)

Returns the value of attribute coord.



18
19
20
# File 'lib/textus/store/container.rb', line 18

def coord
  @coord
end

#infraObject (readonly)

Returns the value of attribute infra.



18
19
20
# File 'lib/textus/store/container.rb', line 18

def infra
  @infra
end

Class Method Details

.attribute_namesObject



9
10
11
# File 'lib/textus/store/container.rb', line 9

def self.attribute_names
  @attribute_names ||= [:root] + Infrastructure.members + Coordination.members
end

Instance Method Details

#rootObject



20
21
22
# File 'lib/textus/store/container.rb', line 20

def root
  @infra.geometry.root
end

#wire_gate!(gate, compositor) ⇒ Object



32
33
34
35
36
37
38
39
40
# File 'lib/textus/store/container.rb', line 32

def wire_gate!(gate, compositor)
  @coord = Coordination.new(
    manifest: @coord.manifest,
    workflows: @coord.workflows,
    gate:,
    compositor:,
  )
  self
end