DownloadPackageInstaller Class

Summary

Installs tools from download: package references: downloads a file over HTTPS, verifies its SHA-256, extracts it when it is an archive and returns the files to register with Cake's tool locator.
Assembly
Cake.Download.Module.dll
Namespace
Cake.Download.Module
Interfaces
  • IPackageInstaller
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IPackageInstaller"] Type["DownloadPackageInstaller"] class Type type-node

Syntax

public sealed class DownloadPackageInstaller : IPackageInstaller

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Methods

Name Value Summary
CanInstall(PackageReference, PackageType) bool
Determines whether this installer handles the package: download: references of type tool.
Install(PackageReference, PackageType, DirectoryPath) IReadOnlyCollection<IFile>
Installs the tool into <path>/<package>.<version>/, unless an identical install is already there, and returns the files to register.

Extension Methods

Name Value Summary
Dump<DownloadPackageInstaller>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DownloadPackageInstaller>(DownloadPackageInstaller[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DownloadPackageInstaller>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DownloadPackageInstaller>(string) void
Requires the Cake.Issues addin
ThrowIfNull<DownloadPackageInstaller>(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<DownloadPackageInstaller>(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