Beispiel #1
0
 public DeploymentService(DeploymentConfiguration configuration, DeploymentPipelineFactory pipelineFactory,
                          FileUploadHandlerFactory fileUploadHandler)
 {
     this.configuration     = configuration;
     this.pipeline          = pipelineFactory.Create(configuration.SSHLogin);
     this.fileUploadHandler = fileUploadHandler;
     powershellClient       = new PowershellClient();
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            configurationBuilder = new DeploymentConfigurationBuilder(deploymentConfigLogger);
            DeploymentPipelineFactory pipelineFactory = new DeploymentPipelineFactory(deploymentFactoryLogger, pipelineLogger);
            string settingsFilePath = string.Empty;

            if (args.Length == 0)
            {
                //settingsFilePath = "sample_deployment_config.json";
                settingsFilePath = "E:\\Tempfiles\\deployment-central\\omniscraper-deployment.json";
            }
            else
            {
                settingsFilePath = args[0];
            }


            DeploymentConfiguration deploymentConfiguration = configurationBuilder.GetConfiguration(settingsFilePath);

            DeploymentService deploymentService =
                new DeploymentService(deploymentConfiguration, pipelineFactory, fileUploadHandlerFactory);

            deploymentService.Deploy();
        }