Summary
The script host used to execute Cake scripts.
- Namespace
- Cake
.Cli - Interfaces
- Base Types
-
- object
- ScriptHost
- Derived Types
graph BT
Type-->Base0["ScriptHost"]
click Base0 "/api/Cake.Core.Scripting/ScriptHost"
Base0-->Base1["object"]
Type-.->Interface0["IScriptHost"]
click Interface0 "/api/Cake.Core.Scripting/IScriptHost"
Type["BuildScriptHost<TContext>"]
class Type type-node
Derived0["BuildScriptHost"]-->Type
click Derived0 "/api/Cake.Cli/BuildScriptHost"
Syntax
public class BuildScriptHost<TContext> : ScriptHost, IScriptHost where TContext : ICakeContext
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
Constructors
Name | Summary |
---|---|
BuildScriptHost |
Initializes a new instance of the BuildScriptHost<TContext> class.
|
Properties
Name | Value | Summary |
---|---|---|
Context | ICakeContext |
Gets the context.
Inherited from ScriptHost
|
Engine | ICakeEngine |
Gets the engine.
Inherited from ScriptHost
|
Settings | ExecutionSettings |
Gets the settings.
Inherited from ScriptHost
|
Tasks | IReadOnlyList |
Gets all registered tasks.
Inherited from ScriptHost
|
Methods
Name | Value | Summary |
---|---|---|
RunTarget |
CakeReport |
Runs the specified target.
Inherited from ScriptHost
|
RunTargetAsync |
Task |
Runs the specified target.
|
RunTargets |
CakeReport |
Runs the specified targets.
Inherited from ScriptHost
|
RunTargetsAsync |
Task |
Runs the specified targets.
|
Setup |
void |
Allows registration of an action that's executed before any tasks are run.
If setup fails, no tasks will be executed but teardown will be performed.
Inherited from ScriptHost
|
Setup |
void |
Allows registration of an action that's executed before any tasks are run.
If setup fails, no tasks will be executed but teardown will be performed.
Inherited from ScriptHost
|
Task |
CakeTaskBuilder |
Registers a new task.
Inherited from ScriptHost
|
TaskOf |
CakeTaskBuilder |
Registers a new task.
Inherited from ScriptHost
|
TaskSetup |
void |
Allows registration of an action that's executed before each task is run.
If the task setup fails, its task will not be executed but the task teardown will be performed.
Inherited from ScriptHost
|
TaskSetup |
void |
Allows registration of an action that's executed before each task is run.
If the task setup fails, its task will not be executed but the task teardown will be performed.
Inherited from ScriptHost
|
TaskTeardown |
void |
Allows registration of an action that's executed after each task has been run.
If a task setup action or a task fails with or without recovery, the specified task teardown action will still be executed.
Inherited from ScriptHost
|
TaskTeardown |
void |
Allows registration of an action that's executed after each task has been run.
If a task setup action or a task fails with or without recovery, the specified task teardown action will still be executed.
Inherited from ScriptHost
|
Teardown |
void |
Allows registration of an action that's executed after all other tasks have been run.
If a setup action or a task fails with or without recovery, the specified teardown action will still be executed.
Inherited from ScriptHost
|
Teardown |
void |
Allows registration of an action that's executed after all other tasks have been run.
If a setup action or a task fails with or without recovery, the specified teardown action will still be executed.
Inherited from ScriptHost
|
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
|