Exemplo n.º 1
0
        public PipelineWebServerOnlyFull(
            IStepRunner runner,
            PipelineDevopInit pipelineDevOpInit,
            InfraWebServerCreateVm infraWebServerCreateVm,
            InstallDockerCmd installDockerSsh,
            InstallTraefikCmd installTraefikSsh
            )
        {
            this.run = async() => {
                await pipelineDevOpInit.Run();

                await runner.Run(infraWebServerCreateVm);

                await runner.Run(installDockerSsh);

                await runner.Run(installTraefikSsh);
            };
        }
Exemplo n.º 2
0
        public PipelineDevOpOnlyFull(
            IStepRunner runner,
            ListAsk listAsk,
            ListResources listResources,
            IShellCommandExecute shellCommandExecute,
            InstallVaultCmd installVaultCmd,
            DevOpConfigureVault devOpConfigureVault,
            InstallTraefikCmd installTraefikSsh,
            AddGitToBuild addGitToBuild,
            GitCloneOrPull gitCloneOrPull,
            DockerBuildCmd dockerBuildCmd
            //,
            //DockerRunCmd dockerRunCmd,
            //TraefikConfigure dockerRunCmd,
            )
        {
            installVaultCmd.SetCommandExecute(shellCommandExecute);
            installTraefikSsh.SetCommandExecute(shellCommandExecute);

            gitCloneOrPull.SetCommandExecute(shellCommandExecute);
            dockerBuildCmd.SetCommandExecute(shellCommandExecute);

            this.run = async() => {
                await runner.Run(installVaultCmd);

                await runner.Run(devOpConfigureVault);

                await runner.Run(installTraefikSsh);

                await runner.Run(addGitToBuild);

                await runner.Run(gitCloneOrPull);

                await runner.Run(dockerBuildCmd);
            };
            this.listAsk       = listAsk;
            this.listResources = listResources;
        }