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
selections
SelectionsA list of ImplementationSelections to check for referenced feeds.
architecture
ArchitectureThe Architecture the Selections were generated for.
destination
stringThe path of the directory to export to.
Exceptions
- IOException
The directory
destination
could not be created.- UnauthorizedAccessException
Creating the directory
destination
is 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
feedCache
IFeedCacheUsed to get local feed files.
openPgp
IOpenPgpUsed 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
icons
IEnumerable<Icon>The icons to export.
iconStore
IIconStoreThe 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
implementationStore
IImplementationStoreUsed to get cached implementations.
handler
ITaskHandlerA 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.