Пример #1
0
 public IOfferRemoteExecution PowerShell(string command, Action<IOfferPowerShellOptions> powerShellOptions)
 {
     var psProvider = new PowerShellProvider(command);
     powerShellOptions(new PowerShellOptions(psProvider));
     AddOperation(psProvider);
     return this;
 }
Пример #2
0
 public IOfferRemoteExecution PowerShell(FileInfo scriptFile, Action<IOfferPowerShellOptions> powerShellOptions)
 {
     var psProvider = new PowerShellProvider(scriptFile);
     powerShellOptions(new PowerShellOptions(psProvider));
     AddOperation(psProvider);
     return this;
 }
Пример #3
0
 public IOfferRemoteExecution PowerShell(FileInfo scriptFile, Action<PowerShellOptions> powerShellOptions)
 {
     var psProvider = new PowerShellProvider(scriptFile);
     powerShellOptions(new PowerShellOptions(psProvider));
     psProvider.Configure(new RemoteCompositeBuilder(_remoteSequence.NewCompositeSequence(psProvider), _webDeploy));
     return this;
 }
Пример #4
0
 public IOfferRemoteExecution PowerShell(string commandOrScript, Action<PowerShellOptions> powerShellOptions)
 {
     var psProvider = new PowerShellProvider(commandOrScript);
     powerShellOptions(new PowerShellOptions(psProvider));
     psProvider.Configure(new RemoteCompositeBuilder(_remoteSequence.NewCompositeSequence(psProvider), _webDeploy));
     return this;
 }
Пример #5
0
 public IOfferRemoteExecution PowerShell(FileInfo scriptFile)
 {
     var psProvider = new PowerShellProvider(scriptFile);
     AddOperation(psProvider);
     return this;
 }
Пример #6
0
 public IOfferRemoteExecution PowerShell(string command)
 {
     var psProvider = new PowerShellProvider(command);
     AddOperation(psProvider);
     return this;
 }
Пример #7
0
 public void Configure(PostOpsSequence sequence)
 {
     var op = new PowerShellProvider(string.Format("Remove-Item -force -recurse {0}{1}", @"$env:temp\ConDep\", ConDepGlobals.ExecId));
     var compSeq = sequence.NewCompositeSequence(op);
     op.Configure(new RemoteCompositeBuilder(compSeq, new WebDeployHandler()));
 }