C# Class Kudu.TestHarness.Git

Afficher le fichier Open project: projectkudu/kudu Class Usage Examples

Méthodes publiques

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

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

public static Add ( string repositoryPath, string path ) : void
repositoryPath string
path string
Résultat void

CheckOut() public static méthode

public static CheckOut ( string repositoryPath, string branchName ) : void
repositoryPath string
branchName string
Résultat void

Clone() public static méthode

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
Résultat Kudu.TestHarness.TestRepository

CloneToLocal() public static méthode

public static CloneToLocal ( string cloneUri, string path = null ) : string
cloneUri string
path string
Résultat string

Commit() public static méthode

public static Commit ( string repositoryPath, string message ) : void
repositoryPath string
message string
Résultat void

GetRepositoryPath() public static méthode

public static GetRepositoryPath ( string repositoryPath ) : string
repositoryPath string
Résultat string

GitDeploy() public static méthode

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
Résultat Kudu.TestHarness.GitDeploymentResult

GitDeploy() public static méthode

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
Résultat Kudu.TestHarness.GitDeploymentResult

Id() public static méthode

public static Id ( string repositoryPath ) : string
repositoryPath string
Résultat string

Init() public static méthode

public static Init ( string repositoryPath ) : Kudu.TestHarness.TestRepository
repositoryPath string
Résultat Kudu.TestHarness.TestRepository

Push() public static méthode

public static Push ( string repositoryPath, string url, string localBranchName = "master", string remoteBranchName = "master" ) : string
repositoryPath string
url string
localBranchName string
remoteBranchName string
Résultat string

Reset() public static méthode

public static Reset ( string repositoryPath, string commit = "HEAD^" ) : void
repositoryPath string
commit string
Résultat void

Revert() public static méthode

public static Revert ( string repositoryPath, string commit = "HEAD" ) : void
repositoryPath string
commit string
Résultat void