Sha256: 09afaecdd71f305d82ec272a51e0e60d60e5b0956ea40e1fb5d5a6a66e9cf1be

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

require_relative "import_base"

module Foobara
  module RemoteImports
    class ImportOrganization < Command
      include ImportBase

      def find_manifests_to_import
        root_manifest.organizations
      end

      def import_object_from_manifest
        if manifest_to_import.global?
          return GlobalOrganization
        end

        Organization.create(manifest_to_import.reference)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foobara-remote-imports-0.0.4 src/foobara/remote_imports/import_organization.rb
foobara-remote-imports-0.0.3 src/foobara/remote_imports/import_organization.rb
foobara-remote-imports-0.0.2 src/foobara/remote_imports/import_organization.rb
foobara-remote-imports-0.0.1 src/foobara/remote_imports/import_organization.rb