public CompositeSequence NewCompositeSequence(RemoteCompositeInfrastructureOperation operation) { var sequence = new CompositeSequence(operation.Name); if (operation is IRequireRemotePowerShellScripts) { var scriptOp = new PowerShellScriptDeployOperation(((IRequireRemotePowerShellScripts)operation).ScriptPaths); scriptOp.Configure(new RemoteCompositeBuilder(sequence, new WebDeployHandler())); } _sequence.Add(sequence); return(sequence); }
//public IOfferRemoteExecution RemoteExecution { get{ return new RemoteExecutionBuilder(_infrastructureSequence, _webDeploy);} } public void AddOperation(RemoteCompositeInfrastructureOperation operation) { operation.Configure(new RemoteCompositeBuilder(_infrastructureSequence.NewCompositeSequence(operation), _webDeploy), new InfrastructureBuilder(_infrastructureSequence, _webDeploy)); }