ChocolateyToolResolver Class

Summary

Contains Chocolatey path resolver functionality.
Namespace
Cake.Common.Tools.Chocolatey
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IChocolateyToolResolver"] click Interface0 "/api/Cake.Common.Tools.Chocolatey/IChocolateyToolResolver" Type["ChocolateyToolResolver"] class Type type-node

Syntax

public sealed class ChocolateyToolResolver : IChocolateyToolResolver

Constructors

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

Methods

Name Value Summary
ResolvePath() FilePath
Resolves the path to choco.exe.

Extension Methods

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