Summary
Base class for tools.
- Namespace
- Cake
.Core .Tooling - Base Types
-
- object
- Derived Types
-
- OctopusDeployTool
<TSettings> - GitLink3Runner
- ILRepackRunner
- RoundhouseRunner
- OpenCoverRunner
- SignToolSignRunner
- LightRunner
- ILMergeRunner
- MakeNSISRunner
- InspectCodeRunner
- NuGetTool
<TSettings> - NUnitRunner
- NUnit3Runner
- DotNetTool
<TSettings> - XBuildRunner
- DupFinderRunner
- CakeRunner
- FixieRunner
- Git
Release Notes Runner - MSBuildRunner
- ChocolateyTool
<TSettings> - MSTestRunner
- XUnit2Runner
- GitVersionRunner
- Git
Release Manager Tool <TSettings> - ReportUnitRunner
- InnoSetupRunner
- GitLinkRunner
- MSpecRunner
- VSTestRunner
- SpecFlowTool
<TSettings> - XUnitRunner
- CommandRunner
- CandleRunner
- Report
Generator Runner - HeatRunner
- VSWhereTool
<TSettings> - DotCoverTool
<TSettings> - TextTransformRunner
- OctopusDeployTool
graph BT
Type-->Base0["object"]
Type["Tool<TSettings>"]
class Type type-node
Derived0["OctopusDeployTool<TSettings>"]-->Type
click Derived0 "/api/Cake.Common.Tools.OctopusDeploy/OctopusDeployTool_1"
Derived1["GitLink3Runner"]-->Type
click Derived1 "/api/Cake.Common.Tools.GitLink/GitLink3Runner"
Derived2["ILRepackRunner"]-->Type
click Derived2 "/api/Cake.Common.Tools.ILRepack/ILRepackRunner"
Derived3["RoundhouseRunner"]-->Type
click Derived3 "/api/Cake.Common.Tools.Roundhouse/RoundhouseRunner"
Derived4["OpenCoverRunner"]-->Type
click Derived4 "/api/Cake.Common.Tools.OpenCover/OpenCoverRunner"
Derived5["SignToolSignRunner"]-->Type
click Derived5 "/api/Cake.Common.Tools.SignTool/SignToolSignRunner"
Derived6["LightRunner"]-->Type
click Derived6 "/api/Cake.Common.Tools.WiX/LightRunner"
Derived7["ILMergeRunner"]-->Type
click Derived7 "/api/Cake.Common.Tools.ILMerge/ILMergeRunner"
Derived8["MakeNSISRunner"]-->Type
click Derived8 "/api/Cake.Common.Tools.NSIS/MakeNSISRunner"
Derived9["InspectCodeRunner"]-->Type
click Derived9 "/api/Cake.Common.Tools.InspectCode/InspectCodeRunner"
Derived10["NuGetTool<TSettings>"]-->Type
click Derived10 "/api/Cake.Common.Tools.NuGet/NuGetTool_1"
Derived11["NUnitRunner"]-->Type
click Derived11 "/api/Cake.Common.Tools.NUnit/NUnitRunner"
Derived12["NUnit3Runner"]-->Type
click Derived12 "/api/Cake.Common.Tools.NUnit/NUnit3Runner"
Derived13["DotNetTool<TSettings>"]-->Type
click Derived13 "/api/Cake.Common.Tools.DotNet/DotNetTool_1"
Derived14["XBuildRunner"]-->Type
click Derived14 "/api/Cake.Common.Tools.XBuild/XBuildRunner"
Derived15["DupFinderRunner"]-->Type
click Derived15 "/api/Cake.Common.Tools.DupFinder/DupFinderRunner"
Derived16["CakeRunner"]-->Type
click Derived16 "/api/Cake.Common.Tools.Cake/CakeRunner"
Derived17["FixieRunner"]-->Type
click Derived17 "/api/Cake.Common.Tools.Fixie/FixieRunner"
Derived18["GitReleaseNotesRunner"]-->Type
click Derived18 "/api/Cake.Common.Tools.GitReleaseNotes/GitReleaseNotesRunner"
Derived19["MSBuildRunner"]-->Type
click Derived19 "/api/Cake.Common.Tools.MSBuild/MSBuildRunner"
Derived20["ChocolateyTool<TSettings>"]-->Type
click Derived20 "/api/Cake.Common.Tools.Chocolatey/ChocolateyTool_1"
Derived21["MSTestRunner"]-->Type
click Derived21 "/api/Cake.Common.Tools.MSTest/MSTestRunner"
Derived22["XUnit2Runner"]-->Type
click Derived22 "/api/Cake.Common.Tools.XUnit/XUnit2Runner"
Derived23["GitVersionRunner"]-->Type
click Derived23 "/api/Cake.Common.Tools.GitVersion/GitVersionRunner"
Derived24["GitReleaseManagerTool<TSettings>"]-->Type
click Derived24 "/api/Cake.Common.Tools.GitReleaseManager/GitReleaseManagerTool_1"
Derived25["ReportUnitRunner"]-->Type
click Derived25 "/api/Cake.Common.Tools.ReportUnit/ReportUnitRunner"
Derived26["InnoSetupRunner"]-->Type
click Derived26 "/api/Cake.Common.Tools.InnoSetup/InnoSetupRunner"
Derived27["GitLinkRunner"]-->Type
click Derived27 "/api/Cake.Common.Tools.GitLink/GitLinkRunner"
Derived28["MSpecRunner"]-->Type
click Derived28 "/api/Cake.Common.Tools.MSpec/MSpecRunner"
Derived29["VSTestRunner"]-->Type
click Derived29 "/api/Cake.Common.Tools.VSTest/VSTestRunner"
Derived30["SpecFlowTool<TSettings>"]-->Type
click Derived30 "/api/Cake.Common.Tools.SpecFlow/SpecFlowTool_1"
Derived31["XUnitRunner"]-->Type
click Derived31 "/api/Cake.Common.Tools.XUnit/XUnitRunner"
Derived32["CommandRunner"]-->Type
click Derived32 "/api/Cake.Common.Tools.Command/CommandRunner"
Derived33["CandleRunner"]-->Type
click Derived33 "/api/Cake.Common.Tools.WiX/CandleRunner"
Derived34["ReportGeneratorRunner"]-->Type
click Derived34 "/api/Cake.Common.Tools.ReportGenerator/ReportGeneratorRunner"
Derived35["HeatRunner"]-->Type
click Derived35 "/api/Cake.Common.Tools.WiX.Heat/HeatRunner"
Derived36["VSWhereTool<TSettings>"]-->Type
click Derived36 "/api/Cake.Common.Tools.VSWhere/VSWhereTool_1"
Derived37["DotCoverTool<TSettings>"]-->Type
click Derived37 "/api/Cake.Common.Tools.DotCover/DotCoverTool_1"
Derived38["TextTransformRunner"]-->Type
click Derived38 "/api/Cake.Common.Tools.TextTransform/TextTransformRunner"
Syntax
public abstract class Tool<TSettings> where TSettings : ToolSettings
Type Parameters
Name | Description |
---|---|
TSettings | The settings type. |
Constructors
Name | Summary |
---|---|
Tool |
Initializes a new instance of the Tool<TSettings> class.
|
Methods
Name | Value | Summary |
---|---|---|
Get |
IEnumerable |
Gets alternative file paths which the tool may exist in.
|
Get |
IDictionary |
Gets the environment variables.
|
Get |
IEnumerable |
Gets the possible names of the tool executable.
|
Get |
IEnumerable |
Gets the possible names of the tool executable.
|
GetToolName |
string |
Gets the name of the tool.
|
GetToolPath |
FilePath |
Gets the resolved tool path.
|
GetWorkingDirectory |
DirectoryPath |
Gets the working directory.
Defaults to the currently set working directory.
|
ProcessExitCode |
void |
Customized exit code handling.
Standard behavior is to fail when non zero.
|
Run |
void |
Runs the tool using a custom tool path and the specified settings.
|
Run |
void |
Runs the tool using the specified settings.
|
RunProcess |
IProcess |
Runs the tool using a custom tool path and the specified settings.
|
RunProcess |
IProcess |
Runs the tool using a custom tool path and the specified settings.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|