RwxRuntimeInfo Class

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
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(ICakeEnvironment) 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
GetEnvironmentBoolean(string) bool
Gets an environment variable as a bool.
Inherited from RwxInfo
GetEnvironmentDirectoryPath(string) DirectoryPath
Gets an environment variable as a DirectoryPath.
Inherited from RwxInfo
GetEnvironmentInteger(string) int
Gets an environment variable as a int.
Inherited from RwxInfo
GetEnvironmentString(string) string
Gets an environment variable as a string.
Inherited from RwxInfo

Extension Methods

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