public CKSetupStoreTestHelperConfigFile( GitFolder f, SolutionDriver solutionDriver, SolutionSpec settings, IEnvLocalFeedProvider localFeedProvider, NormalizedPath branchPath) : base(f, branchPath, branchPath.AppendPart("RemoteStore.TestHelper.config")) { _solutionSpec = settings; _solutionDriver = solutionDriver; _localFeedProvider = localFeedProvider; // Always monitor branch change even if _settings.ProduceCKSetupComponents is false // so that we delete the test file on leaving local if it happens to exist. if (PluginBranch == StandardGitStatus.Local) { f.OnLocalBranchEntered += OnLocalBranchEntered; f.OnLocalBranchLeaving += OnLocalBranchLeaving; } // If the settings states that CKSetup is not used, there is no need to react to builds. if (_solutionSpec.UseCKSetup) { _solutionDriver.OnStartBuild += OnStartBuild; _solutionDriver.OnEndBuild += OnEndBuild; } }
public SharedPropsFile(CommonFolder f, SolutionDriver driver, SolutionSpec solutionSpec, NormalizedPath branchPath) : base(f.GitFolder, branchPath, f.FolderPath.AppendPart("Shared.props"), null) { _commonFolder = f; _driver = driver; _solutionSpec = solutionSpec; }
public CSProjFile( GitFolder f, NormalizedPath branchPath, SolutionDriver solutionDriver) : base(f, branchPath) { _solutionDriver = solutionDriver; }
public NPMProjectsDriver(GitFolder f, NormalizedPath branchPath, SolutionDriver driver, SolutionSpec spec) : base(f, branchPath) { _driver = driver; _spec = spec; _driver.OnSolutionConfiguration += OnSolutionConfiguration; _driver.OnUpdatePackageDependency += OnUpdatePackageDependency; }
public AppveyorFile(GitFolder f, SolutionDriver driver, SolutionSpec settings, SecretKeyStore keyStore, SharedWorldState sharedState, NormalizedPath branchPath) : base(f, branchPath, branchPath.AppendPart("appveyor.yml")) { _driver = driver; _solutionSpec = settings; _keyStore = keyStore; _sharedState = sharedState; }
public NPMRCFiles(GitFolder f, NPMProjectsDriver driver, SolutionDriver solutionDriver, SecretKeyStore secretStore, SolutionSpec solutionSpec, NormalizedPath branchPath) : base(f, branchPath) { _solutionDriver = solutionDriver; _solutionSpec = solutionSpec; _driver = driver; _secretStore = secretStore; _solutionDriver.OnSolutionConfiguration += OnSolutionConfiguration; }
public RepositoryXmlFile(GitFolder f, NormalizedPath branchPath, SolutionDriver driver) : base(f, branchPath, branchPath.AppendPart("RepositoryInfo.xml"), null) { if (PluginBranch == StandardGitStatus.Local) { f.OnLocalBranchEntered += OnLocalBranchEntered; f.OnLocalBranchLeaving += OnLocalBranchLeaving; } _driver = driver; _driver.OnStartBuild += OnStartBuild; _driver.OnEndBuild += OnEndBuild; }
public CKSetupCodeCakeBuilderFolder( GitFolder f, SolutionDriver driver, CodeCakeBuilderKeyVaultFile keyVaultFile, SolutionSpec solutionSpec, NormalizedPath branchPath) : base(f, branchPath, "CodeCakeBuilder", "CKSetup/Res") { _driver = driver; _solutionSpec = solutionSpec; _keyVaultFile = keyVaultFile; _driver.OnSolutionConfiguration += OnSolutionConfiguration; _keyVaultFile.Updating += KeyVaultFileUpdating; }
public NugetConfigFile(GitFolder f, SolutionDriver driver, IEnvLocalFeedProvider localFeedProvider, SecretKeyStore secretStore, SolutionSpec s, NormalizedPath branchPath) : base(f, branchPath, branchPath.AppendPart("NuGet.config"), null) { _localFeedProvider = localFeedProvider; _solutionSpec = s; _solutionDriver = driver; _secretStore = secretStore; if (IsOnLocalBranch) { f.OnLocalBranchEntered += OnLocalBranchEntered; f.OnLocalBranchLeaving += OnLocalBranchLeaving; } _solutionDriver.OnStartBuild += OnStartBuild; _solutionDriver.OnZeroBuildProject += OnZeroBuildProject; _solutionDriver.OnSolutionConfiguration += OnSolutionConfiguration; }
public CodeCakeBuilderKeyVaultFile( CodeCakeBuilderFolder f, SolutionDriver driver, SolutionSpec solutionSpec, SecretKeyStore secretStore, SharedWorldState sharedState, NormalizedPath branchPath) : base(f.GitFolder, branchPath, f.FolderPath.AppendPart("CodeCakeBuilderKeyVault.txt")) { _f = f; _driver = driver; _secretStore = secretStore; _sharedState = sharedState; _solutionSpec = solutionSpec; _secretStore.DeclareSecretKey(SolutionDriver.CODECAKEBUILDER_SECRET_KEY, current => current?.Description ?? $"Allows update of CodeCakeBuilderKeyVault.txt used by CI/CD processes. This secret must be managed only by people that have access to the CI/CD processes and their configuration."); }
public CommonFolder(GitFolder f, SolutionDriver driver, SolutionSpec settings, NormalizedPath branchPath) : base(f, branchPath, "Common", "Basics/Res") { _driver = driver; _settings = settings; }
public CodeCakeBuilderFolder(GitFolder f, SolutionDriver driver, NormalizedPath branchPath) : base(f, branchPath, "CodeCakeBuilder", "Basics/Res") { _driver = driver; }
public CodeCakeBuilderCSProjFile(CodeCakeBuilderFolder f, NormalizedPath branchPath, SolutionDriver solutionDriver) : base(f.GitFolder, branchPath, f.FolderPath.AppendPart("CodeCakeBuilder.csproj"), Encoding.UTF8) { _f = f; _solutionDriver = solutionDriver; }
public NPMCodeCakeBuilderFolder(GitFolder f, NPMProjectsDriver npmDriver, SolutionDriver driver, NormalizedPath branchPath) : base(f, branchPath, "CodeCakeBuilder", "NPM/Res") { _npmDriver = npmDriver; _driver = driver; }
public SolutionFolder(GitFolder f, SolutionDriver driver, SolutionSpec solutionSpec, NormalizedPath branchPath) : base(f, branchPath, subFolderPath: String.Empty, "Basics/Res") { _driver = driver; _solutionSpec = solutionSpec; }