C# Class CodeCake.MutableCakeEnvironment

Represents the environment Cake operates in. This mutable implementation allows the PATH environment variable to be dynamically modified. Except this new EnvironmentPaths this is the same as the CakeEnvironment provided by Cake.
Inheritance: ICakeEnvironment
Mostra file Open project: SimpleGitVersion/CodeCake Class Usage Examples

Public Methods

Method Description
AddPath ( EnvironmentAddedPath p ) : void

Adds a path to EnvironmentAddedPaths or EnvironmentDynamicPaths.

GetEnvironmentVariable ( string variable ) : string

Gets an environment variable.

GetEnvironmentVariables ( ) : string>.IDictionary

Gets all environment variables.

GetSpecialPath ( SpecialPath path ) : DirectoryPath

Gets a special path.

IsUnix ( ) : bool
MutableCakeEnvironment ( ICakePlatform platform, ICakeRuntime runtime ) : System

Initializes a new instance of the MutableCakeEnvironment class.

Private Methods

Method Description
GetApplicationRoot ( ) : DirectoryPath
GetTargetFramework ( ) : FrameworkName
Initialize ( IGlobber globber ) : void
Is64BitOperativeSystem ( ) : bool
SetWorkingDirectory ( DirectoryPath path ) : void

Method Details

AddPath() public method

Adds a path to EnvironmentAddedPaths or EnvironmentDynamicPaths.
public AddPath ( EnvironmentAddedPath p ) : void
p EnvironmentAddedPath The path to add.
return void

GetEnvironmentVariable() public method

Gets an environment variable.
public GetEnvironmentVariable ( string variable ) : string
variable string The variable.
return string

GetEnvironmentVariables() public method

Gets all environment variables.
public GetEnvironmentVariables ( ) : string>.IDictionary
return string>.IDictionary

GetSpecialPath() public method

Gets a special path.
public GetSpecialPath ( SpecialPath path ) : DirectoryPath
path SpecialPath The path.
return DirectoryPath

IsUnix() public method

public IsUnix ( ) : bool
return bool

MutableCakeEnvironment() public method

Initializes a new instance of the MutableCakeEnvironment class.
public MutableCakeEnvironment ( ICakePlatform platform, ICakeRuntime runtime ) : System
platform ICakePlatform The platform.
runtime ICakeRuntime The runtime.
return System