Exemplo n.º 1
0
 public DestroyPlanCommand(
     ILog log,
     IVariables variables,
     ICalamariFileSystem fileSystem,
     ICommandLineRunner commandLineRunner,
     ISubstituteInFiles substituteInFiles,
     IExtractPackage extractPackage)
     : base(log, variables, fileSystem, commandLineRunner, substituteInFiles, extractPackage)
 {
 }
Exemplo n.º 2
0
 public PlanCommand(ILog log,
                    IVariables variables,
                    ICalamariFileSystem fileSystem,
                    ICommandLineRunner commandLineRunner,
                    ISubstituteInFiles substituteInFiles,
                    IExtractPackage extractPackage)
     : base(log, variables, fileSystem, substituteInFiles, extractPackage)
 {
     this.log               = log;
     this.fileSystem        = fileSystem;
     this.commandLineRunner = commandLineRunner;
 }
Exemplo n.º 3
0
 protected TerraformCommand(
     ILog log,
     IVariables variables,
     ICalamariFileSystem fileSystem,
     ISubstituteInFiles substituteInFiles,
     IExtractPackage extractPackage
     )
 {
     this.log               = log;
     this.variables         = variables;
     this.fileSystem        = fileSystem;
     this.substituteInFiles = substituteInFiles;
     this.extractPackage    = extractPackage;
 }
Exemplo n.º 4
0
 public UploadAwsS3Command(
     ILog log,
     IVariables variables,
     ICalamariFileSystem fileSystem,
     ISubstituteInFiles substituteInFiles,
     IExtractPackage extractPackage
     )
 {
     this.log               = log;
     this.variables         = variables;
     this.fileSystem        = fileSystem;
     this.substituteInFiles = substituteInFiles;
     this.extractPackage    = extractPackage;
     Options.Add("package=", "Path to the package to extract that contains the package.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));
     Options.Add("bucket=", "The bucket to use", v => bucket = v);
     Options.Add("targetMode=", "Whether the entire package or files within the package should be uploaded to the s3 bucket", v => targetMode = v);
 }
Exemplo n.º 5
0
        public DeployAzureWebCommand(
            ILog log,
            IScriptEngine scriptEngine,
            IVariables variables,
            ICommandLineRunner commandLineRunner,
            ISubstituteInFiles substituteInFiles,
            IExtractPackage extractPackage
            )
        {
            Options.Add("package=", "Path to the deployment package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));

            this.log               = log;
            this.scriptEngine      = scriptEngine;
            this.variables         = variables;
            this.commandLineRunner = commandLineRunner;
            this.substituteInFiles = substituteInFiles;
            this.extractPackage    = extractPackage;
        }
        public DeployJavaArchiveCommand(
            ILog log,
            IScriptEngine scriptEngine,
            IVariables variables,
            ICalamariFileSystem fileSystem,
            ICommandLineRunner commandLineRunner,
            ISubstituteInFiles substituteInFiles,
            IExtractPackage extractPackage
            )
        {
            Options.Add("archive=", "Path to the Java archive to deploy.", v => archiveFile = new PathToPackage(Path.GetFullPath(v)));

            this.log               = log;
            this.scriptEngine      = scriptEngine;
            this.variables         = variables;
            this.fileSystem        = fileSystem;
            this.commandLineRunner = commandLineRunner;
            this.substituteInFiles = substituteInFiles;
            this.extractPackage    = extractPackage;
        }
Exemplo n.º 7
0
 public RunScriptCommand(
     ILog log,
     IDeploymentJournalWriter deploymentJournalWriter,
     IVariables variables,
     IScriptEngine scriptEngine,
     ICalamariFileSystem fileSystem,
     ICommandLineRunner commandLineRunner,
     ISubstituteInFiles substituteInFiles
     )
 {
     Options.Add("package=", "Path to the package to extract that contains the script.", v => packageFile = Path.GetFullPath(v));
     Options.Add("script=", $"Path to the script to execute. If --package is used, it can be a script inside the package.", v => scriptFileArg = v);
     Options.Add("scriptParameters=", $"Parameters to pass to the script.", v => scriptParametersArg = v);
     this.log = log;
     this.deploymentJournalWriter = deploymentJournalWriter;
     this.variables         = variables;
     this.scriptEngine      = scriptEngine;
     this.fileSystem        = fileSystem;
     this.commandLineRunner = commandLineRunner;
     this.substituteInFiles = substituteInFiles;
 }
Exemplo n.º 8
0
 public HelmUpgradeCommand(
     ILog log,
     IScriptEngine scriptEngine,
     IDeploymentJournalWriter deploymentJournalWriter,
     IVariables variables,
     ICommandLineRunner commandLineRunner,
     ICalamariFileSystem fileSystem,
     ISubstituteInFiles substituteInFiles,
     IExtractPackage extractPackage
     )
 {
     Options.Add("package=", "Path to the NuGet package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));
     this.log                     = log;
     this.scriptEngine            = scriptEngine;
     this.deploymentJournalWriter = deploymentJournalWriter;
     this.variables               = variables;
     this.fileSystem              = fileSystem;
     this.substituteInFiles       = substituteInFiles;
     this.extractPackage          = extractPackage;
     this.commandLineRunner       = commandLineRunner;
 }
Exemplo n.º 9
0
 public UploadAwsS3Convention(
     ILog log,
     ICalamariFileSystem fileSystem,
     AwsEnvironmentGeneration awsEnvironmentGeneration,
     string bucket,
     S3TargetMode targetMode,
     IProvideS3TargetOptions optionsProvider,
     IBucketKeyProvider bucketKeyProvider,
     ISubstituteInFiles substituteInFiles
     )
 {
     this.log        = log;
     this.fileSystem = fileSystem;
     this.awsEnvironmentGeneration = awsEnvironmentGeneration;
     this.bucket            = bucket;
     this.targetMode        = targetMode;
     this.optionsProvider   = optionsProvider;
     this.bucketKeyProvider = bucketKeyProvider;
     this.substituteInFiles = substituteInFiles;
     this.md5HashSupported  = HashCalculator.IsAvailableHashingAlgorithm(MD5.Create);
 }
Exemplo n.º 10
0
        public DeployAzureServiceFabricAppCommand(
            ILog log,
            IScriptEngine scriptEngine,
            ICertificateStore certificateStore,
            IVariables variables,
            ICommandLineRunner commandLineRunner,
            ISubstituteInFiles substituteInFiles,
            IFileSubstituter fileSubstituter,
            IExtractPackage extractPackage
            )
        {
            Options.Add("package=", "Path to the NuGet package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));

            this.log               = log;
            this.scriptEngine      = scriptEngine;
            this.certificateStore  = certificateStore;
            this.variables         = variables;
            this.commandLineRunner = commandLineRunner;
            this.substituteInFiles = substituteInFiles;
            this.fileSubstituter   = fileSubstituter;
            this.extractPackage    = extractPackage;
        }
Exemplo n.º 11
0
        public DeployPackageCommand(
            ILog log,
            IScriptEngine scriptEngine,
            IVariables variables,
            ICalamariFileSystem fileSystem,
            ICommandLineRunner commandLineRunner,
            ISubstituteInFiles substituteInFiles,
            IExtractPackage extractPackage,
            IStructuredConfigVariablesService structuredConfigVariablesService
            )
        {
            Options.Add("package=", "Path to the deployment package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));

            this.log               = log;
            this.scriptEngine      = scriptEngine;
            this.variables         = variables;
            this.fileSystem        = fileSystem;
            this.commandLineRunner = commandLineRunner;
            this.substituteInFiles = substituteInFiles;
            this.extractPackage    = extractPackage;
            this.structuredConfigVariablesService = structuredConfigVariablesService;
        }
 public TerraformSubstituteBehaviour(ISubstituteInFiles substituteInFiles)
 {
     this.substituteInFiles = substituteInFiles;
 }
 public SubstituteInFilesCommand(IVariables variables, ISubstituteInFiles substituteInFiles)
 {
     this.variables         = variables;
     this.substituteInFiles = substituteInFiles;
 }
 public SubstituteInFilesBehaviour(ISubstituteInFiles substituteInFiles)
 {
     this.substituteInFiles = substituteInFiles;
 }