TarArchiver Class

Summary

Creates and extracts tar archives.
Namespace
Cake.Common.IO
Base Types
  • object
graph BT Type-->Base0["object"] Type["TarArchiver"] class Type type-node

Syntax

public sealed class TarArchiver

Constructors

Name Summary
TarArchiver(IFileSystem, ICakeEnvironment, ICakeLog) Initializes a new instance of the TarArchiver class.

Methods

Name Value Summary
Tar(DirectoryPath, FilePath, IEnumerable<FilePath>, TarSettings) void
Creates a tar archive from the specified files.
Tar(DirectoryPath, FilePath, IEnumerable<Path>, TarSettings) void
Creates a tar archive from the specified paths.
Untar(FilePath, DirectoryPath, UntarSettings) void
Extracts the specified archive to the specified output path.
Untar(IEnumerable<FilePath>, DirectoryPath, UntarSettings) void
Extracts the specified archives to the specified output path.

Extension Methods

Name Value Summary
Dump<TarArchiver>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TarArchiver>(TarArchiver[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TarArchiver>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<TarArchiver>(string) void
Requires the Cake.Issues addin
ThrowIfNull<TarArchiver>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<TarArchiver>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin