Class Exporter
- Namespace
- ZeroInstall.Commands.Basic.Exporters
- Assembly
- 0install.dll
Exports feeds and implementations listed in a Selections document.
public class Exporter
- Inheritance
-
Exporter
- Inherited Members
Constructors
Exporter(Selections, Architecture, string)
Creates a new exporter.
public Exporter(Selections selections, Architecture architecture, string destination)
Parameters
selectionsSelectionsA list of ImplementationSelections to check for referenced feeds.
architectureArchitectureThe Architecture the Selections were generated for.
destinationstringThe path of the directory to export to.
Exceptions
- IOException
The directory
destinationcould not be created.- UnauthorizedAccessException
Creating the directory
destinationis not permitted.
Methods
DeployImportScript()
Deploys a script for importing exported feeds and implementations.
public void DeployImportScript()
Exceptions
- IOException
A problem occurred while writing the script.
- UnauthorizedAccessException
Write access to the script is not permitted.
ExportFeeds(IFeedCache, IOpenPgp)
Exports all feeds listed in a Selections document along with any OpenPGP public key files required for validation.
public void ExportFeeds(IFeedCache feedCache, IOpenPgp openPgp)
Parameters
feedCacheIFeedCacheUsed to get local feed files.
openPgpIOpenPgpUsed to get export keys feeds were signed with.
Exceptions
- IOException
A feed or GnuPG could not be read from the cache.
- UnauthorizedAccessException
Read or access to a file is not permitted.
ExportIcons(IEnumerable<Icon>, IIconStore)
Exports all specified icons.
public void ExportIcons(IEnumerable<Icon> icons, IIconStore iconStore)
Parameters
iconsIEnumerable<Icon>The icons to export.
iconStoreIIconStoreThe icon store to export the icons from.
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
A problem occurred while reading or writing a file.
- UnauthorizedAccessException
Read or access to a file is not permitted.
- WebException
A problem occurred while downloading icons.
ExportImplementations(IImplementationStore, ITaskHandler)
Exports all implementations listed in a Selections document as archives.
public void ExportImplementations(IImplementationStore implementationStore, ITaskHandler handler)
Parameters
implementationStoreIImplementationStoreUsed to get cached implementations.
handlerITaskHandlerA callback object used when the user needs to be asked questions or informed about download and IO tasks.
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
An implementation archive could not be created.
- UnauthorizedAccessException
Read or access to a file is not permitted.