Sha256: c47d20dd394c06bd7f311a73f21bb1f5bd3f7f8674ec62f6f6a893ef4e6b60e8

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 Bytes

Contents

module Foobara
  module RemoteImports
    class ImportDomain < Command
      include ImportBase

      depends_on ImportOrganization

      def find_manifests_to_import
        root_manifest.domains
      end

      def import_object_from_manifest
        if manifest_to_import.global?
          return GlobalDomain
        end

        organization = manifest_to_import.organization

        run_subcommand!(
          ImportOrganization,
          raw_manifest: manifest_data,
          to_import: organization.reference,
          already_imported:
        )

        Domain.create(manifest_to_import.reference)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foobara-remote-imports-0.0.8 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.7 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.6 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.5 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.4 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.3 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.2 src/foobara/remote_imports/import_domain.rb
foobara-remote-imports-0.0.1 src/foobara/remote_imports/import_domain.rb