The PublishToRepository method packages dependencies stored on a local machine and publishes them to the ENVI Repository server.

Syntax


Result = ENVI.PublishToRepository(Value ([, Keywords=variable])

Return Value


A UID (universal identifier) that represents the uploaded package.

Arguments


Value

This can be a string pointing to a file on disk or any kind of ENVI API object (ENVIRaster, ENVIROI, Deep Learning model, etc.). The file(s) necessary to recreate this argument will be packaged and sent to the repository for publishing.

Keywords


AUXILIARY_FILES

Specify the files to include in the package.

DESCRIPTION

Specify a description of the package.

ERROR

Set this keyword to a named variable that will contain any error message issued during execution of this routine. If no error occurs, the ERROR variable will be set to a null string (''). If an error occurs and the routine is a function, then the function result will be undefined.

When this keyword is not set and an error occurs, ENVI returns to the caller and execution halts. In this case, the error message is contained within !ERROR_STATE and can be caught using IDL's CATCH routine. See IDL Help for more information on !ERROR_STATE and CATCH.

See Manage Errors for more information on error handling in ENVI programming.

LOG

A log of all the upload transactions with the repository. Use this parameter for tracking and debugging purposes.

NAME

Specify the name of the package's author.

TAGS

A scalar string or an array of strings that help categorize the task. It can be empty with a value of !NULL.

TYPE

Specify the type of package.

URL

Specify the URL of the ENVI Repository server to use for publishing. If not set, a server registered on the local machine will be used.

VERSION

Specify the version of the package. This number can be incremented if the package already exists and you are publishing a new version of it.

Version History


ENVI 6.2

Introduced

See Also


ENVI::DeleteLocalRepository, ENVI::DownloadFromRepository, ENVI::EditRepositoryPackage, ENVI::GetLocalPackageInfo, ENVI::PingRepository, ENVI::RegisterRepository, ENVI::UnregisterRepository