TarAliases.

Tar(ICakeContext, DirectoryPath, FilePath, IEnumerable<FilePath>, TarSettings) Method

Summary

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

Syntax

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

Examples

var files = GetFiles("./**/Cake.*.dll");
Tar("./", "CakeAssemblies.tar.gz", files, 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.
filePaths IEnumerable<FilePath> The file paths.
settings TarSettings The settings.

Return Value

Type Description
void