Environment

Summary

Contains Aliases for helping work with combinations of Argument and Environment variables.

Argument

ArgumentOrEnvironmentVariable(ICakeContext, string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
Addin from Cake.ArgumentHelpers.dll
ArgumentOrEnvironmentVariable(ICakeContext, string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
Addin from Cake.ArgumentHelpers.dll
ArgumentOrEnvironmentVariable(ICakeContext, string, string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
Addin from Cake.ArgumentHelpers.dll
ArgumentOrEnvironmentVariable(ICakeContext, string, string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
Addin from Cake.ArgumentHelpers.dll

Environment Variables

EnvironmentVariable(ICakeContext, string) Retrieves the value of the environment variable or null if the environment variable does not exist.
EnvironmentVariable<T>(ICakeContext, string, T) Retrieves the value of the environment variable or defaultValue if the environment variable does not exist.
EnvironmentVariables(ICakeContext) Retrieves all environment variables
HasEnvironmentVariable(ICakeContext, string) Checks for the existence of a value for a given environment variable.

Platform

IsRunningOnUnix(ICakeContext) Determines whether the build script running on a Unix or Linux based system.
IsRunningOnWindows(ICakeContext) Determines whether the build script is running on Windows.