public AzureContextScriptWrapper(IVariables variables, ICalamariFileSystem fileSystem, ICalamariEmbeddedResources embeddedResources, ILog log)
 {
     this.variables         = variables;
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.log = log;
 }
 public AzurePowerShellContext(IVariables variables)
 {
     this.fileSystem        = new WindowsPhysicalFileSystem();
     this.certificateStore  = new CalamariCertificateStore();
     this.embeddedResources = new AssemblyEmbeddedResources();
     this.variables         = variables;
 }
 public KubernetesContextScriptWrapper(IVariables variables, ILog log, ICalamariEmbeddedResources embeddedResources, ICalamariFileSystem fileSystem)
 {
     this.variables         = variables;
     this.log               = log;
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
 }
 public DeployAzureCloudServicePackageConvention(ICalamariFileSystem fileSystem, ICalamariEmbeddedResources embeddedResources, 
     IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner)
 {
     this.fileSystem = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 5
0
 public DeployAzureCloudServicePackageConvention(ICalamariFileSystem fileSystem, ICalamariEmbeddedResources embeddedResources,
                                                 IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner)
 {
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine      = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 6
0
 public FeatureScriptConvention(string deploymentStage, ICalamariFileSystem fileSystem, ICalamariEmbeddedResources embeddedResources,
                                IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner)
 {
     this.deploymentStage   = deploymentStage;
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine      = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 7
0
 public FeatureScriptConvention(string deploymentStage, ICalamariFileSystem fileSystem, ICalamariEmbeddedResources embeddedResources, 
     IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner)
 {
     this.deploymentStage = deploymentStage;
     this.fileSystem = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
 public SwapAzureDeploymentConvention(ICalamariFileSystem fileSystem,
     ICalamariEmbeddedResources embeddedResources,
     IScriptEngine scriptEngine,
     ICommandLineRunner commandLineRunner)
 {
     this.fileSystem = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 9
0
 protected FeatureConventionBase(string deploymentStage, IEnumerable <IFeature> featureClasses, ICalamariFileSystem fileSystem,
                                 IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner, ICalamariEmbeddedResources embeddedResources)
 {
     this.deploymentStage   = deploymentStage;
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine      = scriptEngine;
     this.commandLineRunner = commandLineRunner;
     this.featureClasses    = featureClasses?.ToList();
 }
 public SwapAzureDeploymentConvention(ICalamariFileSystem fileSystem,
                                      ICalamariEmbeddedResources embeddedResources,
                                      IScriptEngine scriptEngine,
                                      ICommandLineRunner commandLineRunner)
 {
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine      = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 11
0
 public DeployAzureServiceFabricAppConvention(
     ILog log,
     ICalamariFileSystem fileSystem,
     ICalamariEmbeddedResources embeddedResources,
     IScriptEngine scriptEngine,
     ICommandLineRunner commandLineRunner)
 {
     this.log               = log;
     this.fileSystem        = fileSystem;
     this.embeddedResources = embeddedResources;
     this.scriptEngine      = scriptEngine;
     this.commandLineRunner = commandLineRunner;
 }
        public void SetUp()
        {
            fileSystem = Substitute.For<ICalamariFileSystem>();
            embeddedResources = Substitute.For<ICalamariEmbeddedResources>();
            scriptEngine = Substitute.For<IScriptEngine>();
            commandLineRunner = Substitute.For<ICommandLineRunner>();

            scriptEngine.GetSupportedExtensions().Returns(new string[] {"ps1"});

            variables = new CalamariVariableDictionary();
            variables.Set(SpecialVariables.Package.EnabledFeatures, "Octopus.Features.blah");

            deployment = new RunningDeployment("C:\\packages", variables) { StagingDirectory = stagingDirectory };
        }
        public void SetUp()
        {
            fileSystem        = Substitute.For <ICalamariFileSystem>();
            embeddedResources = Substitute.For <ICalamariEmbeddedResources>();
            scriptEngine      = Substitute.For <IScriptEngine>();
            commandLineRunner = Substitute.For <ICommandLineRunner>();

            scriptEngine.GetSupportedTypes().Returns(new[] { ScriptSyntax.PowerShell });

            variables = new CalamariVariables();
            variables.Set(KnownVariables.Package.EnabledFeatures, "Octopus.Features.blah");

            deployment = new RunningDeployment("C:\\packages", variables)
            {
                StagingDirectory = stagingDirectory
            };
        }
Exemplo n.º 14
0
        public void SetUp()
        {
            fileSystem        = Substitute.For <ICalamariFileSystem>();
            embeddedResources = Substitute.For <ICalamariEmbeddedResources>();
            scriptEngine      = Substitute.For <IScriptEngine>();
            commandLineRunner = Substitute.For <ICommandLineRunner>();

            scriptEngine.GetSupportedExtensions().Returns(new string[] { "ps1" });

            variables = new CalamariVariableDictionary();
            variables.Set(SpecialVariables.Package.EnabledFeatures, "Octopus.Features.blah");

            deployment = new RunningDeployment("C:\\packages", variables)
            {
                StagingDirectory = stagingDirectory
            };
        }
Exemplo n.º 15
0
 public AzureServiceFabricPowerShellContext()
 {
     this.fileSystem        = new WindowsPhysicalFileSystem();
     this.embeddedResources = new AssemblyEmbeddedResources();
 }
Exemplo n.º 16
0
 public AzurePowershellContext()
 {
     this.fileSystem = new WindowsPhysicalFileSystem();
     this.certificateStore = new CalamariCertificateStore();
     this.embeddedResources = new ExecutingAssemblyEmbeddedResources();
 }
Exemplo n.º 17
0
 public FeatureConvention(string deploymentStage, IEnumerable <IFeature> featureClasses, ICalamariFileSystem fileSystem, IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner, ICalamariEmbeddedResources embeddedResources)
     : base(deploymentStage, featureClasses, fileSystem, scriptEngine, commandLineRunner, embeddedResources)
 {
 }
 public AzureServiceFabricPowerShellContext(CalamariVariableDictionary variables)
 {
     this.fileSystem        = new WindowsPhysicalFileSystem();
     this.embeddedResources = new AssemblyEmbeddedResources();
     this.variables         = variables;
 }
Exemplo n.º 19
0
 public FeatureRollbackConvention(string deploymentStage, ICalamariFileSystem fileSystem, IScriptEngine scriptEngine, ICommandLineRunner commandLineRunner, ICalamariEmbeddedResources embeddedResources) : base(deploymentStage, null, fileSystem, scriptEngine, commandLineRunner, embeddedResources)
 {
 }