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;
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 public CSProjFile(
     GitFolder f,
     NormalizedPath branchPath,
     SolutionDriver solutionDriver)
     : base(f, branchPath)
 {
     _solutionDriver = solutionDriver;
 }
Ejemplo n.º 4
0
 public NPMProjectsDriver(GitFolder f, NormalizedPath branchPath, SolutionDriver driver, SolutionSpec spec)
     : base(f, branchPath)
 {
     _driver = driver;
     _spec   = spec;
     _driver.OnSolutionConfiguration   += OnSolutionConfiguration;
     _driver.OnUpdatePackageDependency += OnUpdatePackageDependency;
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 10
0
 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.");
 }
Ejemplo n.º 11
0
 public CommonFolder(GitFolder f, SolutionDriver driver, SolutionSpec settings, NormalizedPath branchPath)
     : base(f, branchPath, "Common", "Basics/Res")
 {
     _driver   = driver;
     _settings = settings;
 }
Ejemplo n.º 12
0
 public CodeCakeBuilderFolder(GitFolder f, SolutionDriver driver, NormalizedPath branchPath)
     : base(f, branchPath, "CodeCakeBuilder", "Basics/Res")
 {
     _driver = driver;
 }
Ejemplo n.º 13
0
 public CodeCakeBuilderCSProjFile(CodeCakeBuilderFolder f, NormalizedPath branchPath, SolutionDriver solutionDriver)
     : base(f.GitFolder, branchPath, f.FolderPath.AppendPart("CodeCakeBuilder.csproj"), Encoding.UTF8)
 {
     _f = f;
     _solutionDriver = solutionDriver;
 }
Ejemplo n.º 14
0
 public NPMCodeCakeBuilderFolder(GitFolder f, NPMProjectsDriver npmDriver, SolutionDriver driver, NormalizedPath branchPath)
     : base(f, branchPath, "CodeCakeBuilder", "NPM/Res")
 {
     _npmDriver = npmDriver;
     _driver    = driver;
 }
Ejemplo n.º 15
0
 public SolutionFolder(GitFolder f, SolutionDriver driver, SolutionSpec solutionSpec, NormalizedPath branchPath)
     : base(f, branchPath, subFolderPath: String.Empty, "Basics/Res")
 {
     _driver       = driver;
     _solutionSpec = solutionSpec;
 }