TarAliases.

Tar(ICakeContext, DirectoryPath, FilePath, string) 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)

Examples

Tar("./", "XmlFiles.tar", "./*.xml");

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.

Return Value

Type Description
void