Summary
Zips the specified directory.
- Namespace
- Cake
.Common .IO - Containing Type
- ZipAliases
Syntax
[CakeMethodAlias]
public static void Zip(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath)
Examples
Zip("./publish", "publish.zip");
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. |
Return Value
Type | Description |
---|---|
void |