Module: Foobara::CommandRegistry::ExposedDomain
- Defined in:
- foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb
Instance Attribute Summary collapse
-
#unexposed_domain ⇒ Object
Returns the value of attribute unexposed_domain.
Instance Method Summary collapse
-
#foobara_manifest ⇒ Object
TODO: unable to address types here so it is handled as a hack higher up…
- #foobara_manifest_reference ⇒ Object
- #foobara_organization ⇒ Object
- #root_registry ⇒ Object
Instance Attribute Details
#unexposed_domain ⇒ Object
Returns the value of attribute unexposed_domain.
4 5 6 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb', line 4 def unexposed_domain @unexposed_domain end |
Instance Method Details
#foobara_manifest ⇒ Object
TODO: unable to address types here so it is handled as a hack higher up…
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb', line 12 def to_include = TypeDeclarations. if to_include to_include << end domain_manifest = TypeDeclarations.with_manifest_context(to_include: Set.new) do unexposed_domain. end mode = Foobara::Namespace::LookupMode::DIRECT commands = (mode:).map(&:foobara_manifest_reference).sort domain_manifest.merge(commands:) end |
#foobara_manifest_reference ⇒ Object
40 41 42 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb', line 40 def unexposed_domain. end |
#foobara_organization ⇒ Object
29 30 31 32 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb', line 29 def full_org_name = unexposed_domain..scoped_full_name root_registry.(full_org_name) end |
#root_registry ⇒ Object
34 35 36 37 38 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_registry/exposed_domain.rb', line 34 def root_registry parent = scoped_namespace parent = parent.scoped_namespace while parent.scoped_namespace parent end |