Zero Install .NET API 2.20.0
ZeroInstall.Commands.Basic.Exporters.Exporter Class Reference

Exports feeds and implementations listed in a Selections document. More...

Public Member Functions

 Exporter (Selections selections, Requirements requirements, string destination)
 Creates a new exporter. More...
 
void ExportFeeds (IFeedCache feedCache, IOpenPgp openPgp)
 Exports all feeds listed in a Selections document along with any OpenPGP public key files required for validation. More...
 
void ExportImplementations (IImplementationStore implementationStore, ITaskHandler handler)
 Exports all implementations listed in a Selections document as archives. More...
 
void DeployImportScript ()
 Deploys a bootstrap file for importing exported feeds and implementations.
 
void DeployBootstrapRun (ITaskHandler handler)
 Deploys a bootstrap file for importing exported feeds and implementations. More...
 
void DeployBootstrapIntegrate (ITaskHandler handler)
 Deploys a bootstrap file for importing exported feeds and implementations. More...
 

Detailed Description

Exports feeds and implementations listed in a Selections document.

Constructor & Destructor Documentation

◆ Exporter()

ZeroInstall.Commands.Basic.Exporters.Exporter.Exporter ( Selections  selections,
Requirements  requirements,
string  destination 
)
inline

Creates a new exporter.

Parameters
selectionsA list of ImplementationSelections to check for referenced feeds.
requirementsThe Requirements used to generate the Selections.
destinationThe path of the directory to export to.
Exceptions
IOExceptionThe directory destination could not be created.
UnauthorizedAccessExceptionCreating the directory destination is not permitted.

Member Function Documentation

◆ DeployBootstrapIntegrate()

void ZeroInstall.Commands.Basic.Exporters.Exporter.DeployBootstrapIntegrate ( ITaskHandler  handler)

Deploys a bootstrap file for importing exported feeds and implementations.

Parameters
handlerA callback object used when the the user needs to be asked questions or informed about download and IO tasks.

◆ DeployBootstrapRun()

void ZeroInstall.Commands.Basic.Exporters.Exporter.DeployBootstrapRun ( ITaskHandler  handler)

Deploys a bootstrap file for importing exported feeds and implementations.

Parameters
handlerA callback object used when the the user needs to be asked questions or informed about download and IO tasks.

◆ ExportFeeds()

void ZeroInstall.Commands.Basic.Exporters.Exporter.ExportFeeds ( IFeedCache  feedCache,
IOpenPgp  openPgp 
)
inline

Exports all feeds listed in a Selections document along with any OpenPGP public key files required for validation.

Parameters
feedCacheUsed to get local feed files.
openPgpUsed to get export keys feeds were signed with.
Exceptions
UnauthorizedAccessExceptionThe file could not be read or written.
UnauthorizedAccessExceptionWrite access to the directory is not permitted.
IOExceptionA feed or GnuPG could not be read from the cache.

◆ ExportImplementations()

void ZeroInstall.Commands.Basic.Exporters.Exporter.ExportImplementations ( IImplementationStore  implementationStore,
ITaskHandler  handler 
)
inline

Exports all implementations listed in a Selections document as archives.

Parameters
implementationStoreUsed to get cached implementations.
handlerA callback object used when the the user needs to be asked questions or informed about download and IO tasks.
Exceptions
OperationCanceledExceptionThe user canceled the task.
UnauthorizedAccessExceptionThe file could not be read or written.
UnauthorizedAccessExceptionWrite access to the directory is not permitted.
IOExceptionAn implementation archive could not be creates.

The documentation for this class was generated from the following file: