TarAliases.

Tar(ICakeContext, DirectoryPath, FilePath, TarSettings) Method

Summary

Creates a tar archive from the specified directory.
Namespace
Cake.Common.IO
Containing Type
TarAliases

Syntax

[CakeMethodAlias]
public static void Tar(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, TarSettings settings)

Examples

Tar("./publish", "publish.tar.gz", new TarSettings {
    Compression = TarCompression.GZip,
    Overwrite = true
});

Attributes

Type Description
CakeMethodAliasAttribute 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.
settings TarSettings The settings.

Return Value

Type Description
void