Ejemplo n.º 1
0
 private static void PullAll(string[] args)
 {
     var config = ParseConfig(args);
     var appDeploymentController = new AppDeployment(config);
     appDeploymentController.SynchroniseAllApplications();
 }
Ejemplo n.º 2
0
 private static void PullApp(string[] args)
 {
     Guid appKey;
     if (!Guid.TryParse(args[1], out appKey))
     {
         SyntaxError();
         return;
     }
     var config = ParseConfig(args);
     var appDeploymentController = new AppDeployment(config);
     appDeploymentController.PullApp(appKey);
 }
Ejemplo n.º 3
0
 private void RunUpdate()
 {
     var logWriter = new StringWriter();
     var appDeployment = new AppDeployment(config, logWriter);
     appDeployment.SynchroniseAllApplications();
     logWriter.Flush();
     string logContent = logWriter.ToString();
     if (config.InstanceKey.HasValue && !string.IsNullOrWhiteSpace(logContent))
     {
         var logs = new Logs(config);
         logs.AddLogEntry(new LogEntry() { InstanceKey = config.InstanceKey.Value, Status = appDeployment.DeploymentStatus, LogContent = logContent });
     }
 }