Example #1
0
 public ConfigurationTransformsConvention(ICalamariFileSystem fileSystem, IConfigurationTransformer configurationTransformer, ITransformFileLocator transformFileLocator, ILog log = null)
 {
     this.fileSystem = fileSystem;
     this.configurationTransformer = configurationTransformer;
     this.transformFileLocator     = transformFileLocator;
     this.log = log ?? ConsoleLog.Instance;
 }
Example #2
0
 public ConfigurationTransformsConvention(ICalamariFileSystem fileSystem, IConfigurationTransformer configurationTransformer, ITransformFileLocator transformFileLocator, ILog log = null)
 {
     this.fileSystem = fileSystem;
     this.configurationTransformer = configurationTransformer;
     this.transformFileLocator     = transformFileLocator;
     this.log = log ?? new LogWrapper();
 }
 public ConfigurationTransformsBehaviour(ICalamariFileSystem fileSystem, IConfigurationTransformer configurationTransformer, ITransformFileLocator transformFileLocator, ILog log)
 {
     this.fileSystem = fileSystem;
     this.configurationTransformer = configurationTransformer;
     this.transformFileLocator     = transformFileLocator;
     this.log = log;
 }
Example #4
0
        public void SetUp()
        {
            fileSystem = new WindowsPhysicalFileSystem();
            configurationTransformer = Substitute.For <IConfigurationTransformer>();
            transformFileLocator     = new TransformFileLocator(fileSystem);

            var deployDirectory = BuildConfigPath(null);

            variables = new CalamariVariableDictionary();
            variables.Set(SpecialVariables.OriginalPackageDirectoryPath, deployDirectory);

            deployment = new RunningDeployment(deployDirectory, variables);
            logs       = new ProxyLog();
        }
Example #5
0
        public void SetUp()
        {
            fileSystem = CalamariPhysicalFileSystem.GetPhysicalFileSystem();
            configurationTransformer = Substitute.For <IConfigurationTransformer>();
            transformFileLocator     = new TransformFileLocator(fileSystem);

            var deployDirectory = BuildConfigPath(null);

            variables = new CalamariVariables();
            variables.Set(SpecialVariables.Package.EnabledFeatures, SpecialVariables.Features.ConfigurationTransforms);
            variables.Set(KnownVariables.OriginalPackageDirectoryPath, deployDirectory);

            deployment = new RunningDeployment(deployDirectory, variables);
            logs       = new InMemoryLog();
        }
Example #6
0
 public ConfigurationTransformsConvention(ICalamariFileSystem fileSystem, IConfigurationTransformer configurationTransformer, ITransformFileLocator transformFileLocator)
 {
     this.fileSystem = fileSystem;
     this.configurationTransformer = configurationTransformer;
     this.transformFileLocator     = transformFileLocator;
 }