Summary
Creates a tar archive from the specified files.
- Namespace
- Cake
.Common .IO - Containing Type
- TarAliases
Syntax
[CakeMethodAlias]
public static void Tar(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<string> filePaths, TarSettings settings)
Examples
var files = new [] {
"./src/Cake/bin/Debug/Cake.Common.dll",
"./src/Cake/bin/Debug/Cake.Core.dll"
};
Tar("./", "CakeBinaries.tar.gz", files, new TarSettings {
Compression = TarCompression.GZip
});
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used to mark script method aliases. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| rootPath | DirectoryPath | The root path. |
| outputPath | FilePath | The output path. |
| filePaths | IEnumerable |
The file paths. |
| settings | TarSettings | The settings. |
Return Value
| Type | Description |
|---|---|
| void |
