Exemplo n.º 1
0
 public ExtractToStagingCommand(IExtractPackage extractPackage)
 {
     this.extractPackage = extractPackage;
     Options.Add(
         "package=",
         "Path to the package to extract.",
         v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));
 }
Exemplo n.º 2
0
 public DestroyPlanCommand(
     ILog log,
     IVariables variables,
     ICalamariFileSystem fileSystem,
     ICommandLineRunner commandLineRunner,
     ISubstituteInFiles substituteInFiles,
     IExtractPackage extractPackage)
     : base(log, variables, fileSystem, commandLineRunner, substituteInFiles, extractPackage)
 {
 }
Exemplo n.º 3
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.º 4
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.º 5
0
 public DeployCloudFormationCommand(ILog log, IVariables variables, ICalamariFileSystem fileSystem, IExtractPackage extractPackage)
 {
     this.log            = log;
     this.variables      = variables;
     this.fileSystem     = fileSystem;
     this.extractPackage = extractPackage;
     Options.Add("package=", "Path to the NuGet package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));
     Options.Add("template=", "Path to the JSON template file.", v => templateFile       = v);
     Options.Add("templateParameters=", "Path to the JSON template parameters file.", v => templateParameterFile = v);
     Options.Add("waitForCompletion=", "True if the deployment process should wait for the stack to complete, and False otherwise.",
                 v => waitForComplete = !bool.FalseString.Equals(v, StringComparison.OrdinalIgnoreCase)); //True by default
     Options.Add("stackName=", "The name of the CloudFormation stack.", v => stackName = v);
     Options.Add("disableRollback=", "True to disable the CloudFormation stack rollback on failure, and False otherwise.",
                 v => disableRollback = bool.TrueString.Equals(v, StringComparison.OrdinalIgnoreCase)); //False by default
 }
Exemplo n.º 6
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.º 7
0
 public DeployAzureResourceGroupCommand(
     ILog log,
     IScriptEngine scriptEngine,
     IVariables variables,
     ICommandLineRunner commandLineRunner,
     IExtractPackage extractPackage
     )
 {
     this.log               = log;
     this.scriptEngine      = scriptEngine;
     this.variables         = variables;
     this.commandLineRunner = commandLineRunner;
     this.extractPackage    = extractPackage;
     Options.Add("package=", "Path to the deployment package to install.", v => pathToPackage = new PathToPackage(Path.GetFullPath(v)));
     Options.Add("template=", "Path to the JSON template file.", v => templateFile            = v);
     Options.Add("templateParameters=", "Path to the JSON template parameters file.", v => templateParameterFile = v);
 }
Exemplo n.º 8
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.º 10
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.º 11
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.º 12
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;
        }
Exemplo n.º 13
0
        public ExtractPackageCommand(IVariables variables, IExtractPackage extractPackage, ICalamariFileSystem fileSystem)
        {
            this.extractPackage = extractPackage;

            pathToPrimaryPackage = variables.GetPathToPrimaryPackage(fileSystem, true);
        }
Exemplo n.º 14
0
 public ExtractBehaviour(IExtractPackage extractPackage)
 {
     this.extractPackage = extractPackage;
 }
Exemplo n.º 15
0
 public ExtractPackageCommand(IExtractPackage extractPackage)
 {
     this.extractPackage = extractPackage;
 }