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
Afficher le fichier Open project: SimpleGitVersion/CodeCake Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

AddPath() public méthode

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

GetEnvironmentVariable() public méthode

Gets an environment variable.
public GetEnvironmentVariable ( string variable ) : string
variable string The variable.
Résultat string

GetEnvironmentVariables() public méthode

Gets all environment variables.
public GetEnvironmentVariables ( ) : string>.IDictionary
Résultat string>.IDictionary

GetSpecialPath() public méthode

Gets a special path.
public GetSpecialPath ( SpecialPath path ) : DirectoryPath
path SpecialPath The path.
Résultat DirectoryPath

IsUnix() public méthode

public IsUnix ( ) : bool
Résultat bool

MutableCakeEnvironment() public méthode

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