TarAliases.

Tar(ICakeContext, DirectoryPath, FilePath, string, TarSettings) Method

Summary

Creates a tar archive from the files matching the specified pattern.
Namespace
Cake.Common.IO
Containing Type
TarAliases

Syntax

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

Examples

Tar("./", "XmlFiles.tar.gz", "./*.xml", new TarSettings {
    Compression = TarCompression.GZip
});

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.
pattern string The pattern.
settings TarSettings The settings.

Return Value

Type Description
void