Sha256: 89c2111e72bf552e47115675b69fd3a780736f81390c27448bb8f9f2db25d404

Contents?: true

Size: 851 Bytes

Versions: 20

Compression:

Stored size: 851 Bytes

Contents

module Foobara
  class CommandRegistry
    class ExposedDomain
      foobara_instances_are_namespaces!

      include TruncatedInspect
      include IsManifestable

      attr_accessor :domain_module

      def initialize(domain_module)
        self.domain_module = domain_module
        self.scoped_path = domain_module.scoped_path
      end

      # TODO: unable to address types here so it is handled as a hack higher up...
      def foobara_manifest(to_include:)
        domain_manifest = domain_module.foobara_manifest(to_include: Set.new)
        mode = Foobara::Namespace::LookupMode::DIRECT
        commands = foobara_all_command(mode:).map(&:foobara_manifest_reference).sort

        domain_manifest.merge(commands:)
      end

      def foobara_manifest_reference
        domain_module.foobara_manifest_reference
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foobara-0.0.20 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.19 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.18 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.17 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.16 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.15 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.14 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.13 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.12 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.11 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.10 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.9 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.8 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.7 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.6 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.5 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.4 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.3 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.2 projects/command_connectors/src/command_registry/exposed_domain.rb
foobara-0.0.1 projects/command_connectors/src/command_registry/exposed_domain.rb