Beispiel #1
0
        public PipelineDevopInit(
            IStepRunner runner,
            DevOpConfigureVault devopInitVault,
            DevOpInitSsl devopInitSsl)
        {
            this.run = async() => {
                await runner.Run(devopInitVault);

                await runner.Run(devopInitSsl);
            };
        }
Beispiel #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;
        }