C# 클래스 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.
상속: ICakeEnvironment
파일 보기 프로젝트 열기: SimpleGitVersion/CodeCake 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetApplicationRoot ( ) : DirectoryPath
GetTargetFramework ( ) : FrameworkName
Initialize ( IGlobber globber ) : void
Is64BitOperativeSystem ( ) : bool
SetWorkingDirectory ( DirectoryPath path ) : void

메소드 상세

AddPath() 공개 메소드

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

GetEnvironmentVariable() 공개 메소드

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

GetEnvironmentVariables() 공개 메소드

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

GetSpecialPath() 공개 메소드

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

IsUnix() 공개 메소드

public IsUnix ( ) : bool
리턴 bool

MutableCakeEnvironment() 공개 메소드

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