C# Class Kudu.TestHarness.Git

显示文件 Open project: projectkudu/kudu Class Usage Examples

Public Methods

Method Description
Add ( string repositoryPath, string path ) : void
CheckOut ( string repositoryPath, string branchName ) : void
Clone ( string repositoryName, string source = null, string>.IDictionary environments = null, bool noCache = false ) : Kudu.TestHarness.TestRepository
CloneToLocal ( string cloneUri, string path = null ) : string
Commit ( string repositoryPath, string message ) : void
GetRepositoryPath ( string repositoryPath ) : string
GitDeploy ( Kudu.Client.Deployment.RemoteDeploymentManager deploymentManager, string kuduServiceUrl, string localRepoPath, string remoteRepoUrl, string localBranchName, string remoteBranchName ) : Kudu.TestHarness.GitDeploymentResult
GitDeploy ( string kuduServiceUrl, string localRepoPath, string remoteRepoUrl, string localBranchName, string remoteBranchName ) : Kudu.TestHarness.GitDeploymentResult
Id ( string repositoryPath ) : string
Init ( string repositoryPath ) : Kudu.TestHarness.TestRepository
Push ( string repositoryPath, string url, string localBranchName = "master", string remoteBranchName = "master" ) : string
Reset ( string repositoryPath, string commit = "HEAD^" ) : void
Revert ( string repositoryPath, string commit = "HEAD" ) : void

Private Methods

Method Description
CloneInternal ( string repositoryName, string source, string commitId, string>.IDictionary environments, bool noCache ) : Kudu.TestHarness.TestRepository
CreateCachedRepo ( string source, string commitId, string>.IDictionary environments ) : string
GetGitExe ( string repositoryPath, string>.IDictionary environments = null ) : Kudu.Core.Infrastructure.Executable
GetRepoNamePerContext ( Kudu.TestHarness.TestContext context, string repoName ) : string
GitExecute ( Kudu.Core.Infrastructure.Executable gitExe, string commandFormat ) : string>.Tuple
IsGitRepo ( string cachedPath ) : bool

Method Details

Add() public static method

public static Add ( string repositoryPath, string path ) : void
repositoryPath string
path string
return void

CheckOut() public static method

public static CheckOut ( string repositoryPath, string branchName ) : void
repositoryPath string
branchName string
return void

Clone() public static method

public static Clone ( string repositoryName, string source = null, string>.IDictionary environments = null, bool noCache = false ) : Kudu.TestHarness.TestRepository
repositoryName string
source string
environments string>.IDictionary
noCache bool
return Kudu.TestHarness.TestRepository

CloneToLocal() public static method

public static CloneToLocal ( string cloneUri, string path = null ) : string
cloneUri string
path string
return string

Commit() public static method

public static Commit ( string repositoryPath, string message ) : void
repositoryPath string
message string
return void

GetRepositoryPath() public static method

public static GetRepositoryPath ( string repositoryPath ) : string
repositoryPath string
return string

GitDeploy() public static method

public static GitDeploy ( Kudu.Client.Deployment.RemoteDeploymentManager deploymentManager, string kuduServiceUrl, string localRepoPath, string remoteRepoUrl, string localBranchName, string remoteBranchName ) : Kudu.TestHarness.GitDeploymentResult
deploymentManager Kudu.Client.Deployment.RemoteDeploymentManager
kuduServiceUrl string
localRepoPath string
remoteRepoUrl string
localBranchName string
remoteBranchName string
return Kudu.TestHarness.GitDeploymentResult

GitDeploy() public static method

public static GitDeploy ( string kuduServiceUrl, string localRepoPath, string remoteRepoUrl, string localBranchName, string remoteBranchName ) : Kudu.TestHarness.GitDeploymentResult
kuduServiceUrl string
localRepoPath string
remoteRepoUrl string
localBranchName string
remoteBranchName string
return Kudu.TestHarness.GitDeploymentResult

Id() public static method

public static Id ( string repositoryPath ) : string
repositoryPath string
return string

Init() public static method

public static Init ( string repositoryPath ) : Kudu.TestHarness.TestRepository
repositoryPath string
return Kudu.TestHarness.TestRepository

Push() public static method

public static Push ( string repositoryPath, string url, string localBranchName = "master", string remoteBranchName = "master" ) : string
repositoryPath string
url string
localBranchName string
remoteBranchName string
return string

Reset() public static method

public static Reset ( string repositoryPath, string commit = "HEAD^" ) : void
repositoryPath string
commit string
return void

Revert() public static method

public static Revert ( string repositoryPath, string commit = "HEAD" ) : void
repositoryPath string
commit string
return void