Beispiel #1
0
        public IOfferRemoteOperations ToEachServer(Action <IOfferRemoteOperations> action)
        {
            var builder = new RemoteOperationsBuilder(_localSequence.NewRemoteSequence(_infrastructureSequence, _preOpsSequence, _servers), _webDeploy);

            action(builder);
            return(builder);
        }
Beispiel #2
0
        public IOfferLocalOperations ToEachServer(Action <IOfferRemoteOperations> action)
        {
            var builder = new RemoteOperationsBuilder(_localSequence.NewRemoteSequence(_localSequence.Name));

            action(builder);
            return(this);
        }
 public IOfferRemoteOperations ToEachServer(Action<IOfferRemoteOperations> action)
 {
     var builder = new RemoteOperationsBuilder(_localSequence.NewRemoteSequence(_infrastructureSequence, _servers), _webDeploy);
     action(builder);
     return builder;
 }
 public static void ExecutePreOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     Logger.WithLogSection("Executing pre-operations", () =>
     {
         foreach (var server in conDepSettings.Config.Servers)
         {
             Logger.WithLogSection(server.Name, () =>
             {
                 //Todo: This will not work with ConDep server. After first run, this key will always exist.
                 if (!ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
                 {
                     var remotePreOps = new PreRemoteOps(new PowerShellExecutor());
                     var dsl = new RemoteOperationsBuilder(server, conDepSettings, token);
                     remotePreOps.Execute(dsl, server, conDepSettings, token);
                     ConDepGlobals.ServersWithPreOps.Add(server.Name, server);
                 }
             });
         }
     });
 }
 private static void ExecutePostOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     foreach (var server in conDepSettings.Config.Servers)
     {
         //Todo: This will not work with ConDep server. After first run, this key will always exist.
         if (ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
         {
             var remotePostOps = new PostRemoteOps();
             var dsl = new RemoteOperationsBuilder(server, conDepSettings, token);
             remotePostOps.Execute(dsl, server, conDepSettings, token);
             ConDepGlobals.ServersWithPreOps.Remove(server.Name);
         }
     }
 }
 public IOfferLocalOperations ToEachServer(Action<IOfferRemoteOperations> action)
 {
     var builder = new RemoteOperationsBuilder(_localSequence.NewRemoteSequence(_localSequence.Name));
     action(builder);
     return this;
 }