CompressionAliases.

GZipCompress(ICakeContext, DirectoryPath, FilePath, IEnumerable<FilePath>, int) Method

Summary

Create a GZip Tar archive of the specified files.
Assembly
Cake.Compression.dll
Namespace
Cake.Compression
Containing Type
CompressionAliases

Syntax

public static void GZipCompress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<FilePath> filePaths, int level)

Examples

var files = GetFiles("./**/Cake.*.dll");
GZipCompress("./", "cakeassemblies.tar.gz", files, 6);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
rootPath DirectoryPath The root path.
outputPath FilePath The output path.
filePaths IEnumerable<FilePath> The file paths.
level int The compression level (1-9).

Return Value

Type Description
void