Sha256: 75e3d235aa7a64baafda3d0f07d1bb8f65a23d434d069b81607206299a144de3

Contents?: true

Size: 908 Bytes

Versions: 20

Compression:

Stored size: 908 Bytes

Contents

module Foobara
  class CommandRegistry
    class ExposedOrganization
      foobara_instances_are_namespaces!

      include TruncatedInspect
      include IsManifestable

      attr_accessor :organization_module

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

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

        organization_manifest.merge(domains:)
      end

      def foobara_manifest_reference
        organization_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_organization.rb
foobara-0.0.19 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.18 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.17 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.16 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.15 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.14 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.13 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.12 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.11 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.10 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.9 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.8 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.7 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.6 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.5 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.4 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.3 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.2 projects/command_connectors/src/command_registry/exposed_organization.rb
foobara-0.0.1 projects/command_connectors/src/command_registry/exposed_organization.rb