Summary
Provides RWX runtime information for the current build, exposing the
directories RWX uses for output values and artifacts. These are written to
at task execution time and complement static
outputs.values /
outputs.artifacts declarations in the task YAML.
- Namespace
- Cake
.Common .Build .Rwx .Data - Base Types
-
- object
- RwxInfo
graph BT
Type-->Base0["RwxInfo"]
click Base0 "/api/Cake.Common.Build.Rwx/RwxInfo"
Base0-->Base1["object"]
Type["RwxRuntimeInfo"]
class Type type-node
Syntax
public sealed class RwxRuntimeInfo : RwxInfo
Constructors
| Name | Summary |
|---|---|
| RwxRuntimeInfo |
Initializes a new instance of the RwxRuntimeInfo class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| ArtifactsPath | DirectoryPath |
Gets the directory into which artifacts can be uploaded. Files copied
into this directory are captured as artifacts of the current task.
|
| EnvPath | DirectoryPath |
Gets the directory into which environment variables can be exported
for downstream tasks. Each file in this directory becomes an
environment variable in tasks that depend on the current one via
use, keyed by filename.
|
| IsRuntimeAvailable | bool |
Gets a value indicating whether the values, artifacts, and env
directories are all exposed by the current RWX runtime.
|
| ValuesPath | DirectoryPath |
Gets the directory in which output values can be written. Each file
in this directory becomes an output value keyed by its filename.
|
Methods
| Name | Value | Summary |
|---|---|---|
| Get |
bool |
Gets an environment variable as a
bool.
Inherited from RwxInfo
|
| Get |
DirectoryPath |
Gets an environment variable as a
DirectoryPath.
Inherited from RwxInfo
|
| Get |
int |
Gets an environment variable as a
int.
Inherited from RwxInfo
|
| GetEnvironmentString |
string |
Gets an environment variable as a
string.
Inherited from RwxInfo
|
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 |
Throws an exception if the specified parameter's value is null.
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 |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
