public IOfferRemoteExecution PowerShell(string command, Action<IOfferPowerShellOptions> powerShellOptions) { var psProvider = new PowerShellProvider(command); powerShellOptions(new PowerShellOptions(psProvider)); AddOperation(psProvider); return this; }
public IOfferRemoteExecution PowerShell(FileInfo scriptFile, Action<IOfferPowerShellOptions> powerShellOptions) { var psProvider = new PowerShellProvider(scriptFile); powerShellOptions(new PowerShellOptions(psProvider)); AddOperation(psProvider); return this; }
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; }
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; }
public IOfferRemoteExecution PowerShell(FileInfo scriptFile) { var psProvider = new PowerShellProvider(scriptFile); AddOperation(psProvider); return this; }
public IOfferRemoteExecution PowerShell(string command) { var psProvider = new PowerShellProvider(command); AddOperation(psProvider); return this; }
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())); }