public void FixtureSetUp() { DataMother.CreateDataFolder(); theBuilder = new SolutionGraphBuilder(new FileSystem()); theGraph = theBuilder.ReadFrom("data"); }
public IEnumerable<Solution> SelectSolutions(SolutionGraph theGraph) { var start = From.IsEmpty() ? null : theGraph[From]; var end = To.IsEmpty() ? null : theGraph[To]; if (Direct) { if (To.IsEmpty() || From.IsEmpty()) { throw new InvalidOperationException("If using the Direct option, you must specify bith a From and To solution"); } return new [] { start, end }; } var solutions = theGraph.AllSolutions.ToList(); solutions = filterByStarting(start, solutions); solutions = filterByEnding(end, solutions); return solutions; }
public void RunPlan(SolutionGraph graph, RipplePlanRequirements requirements) { var solutions = requirements.SelectSolutions(graph); var plan = new RipplePlan(solutions, requirements.SkipBuild); var number = 0; try { plan.Each(step => runStep(step, ++number, plan.Count)); } finally { Console.WriteLine(); Console.WriteLine(); Console.WriteLine("The log file is at " + RippleFileSystem.RippleLogsDirectory().AppendPath("ripple.log")); Console.WriteLine("or type 'ripple open-log'"); _logger.WriteLogFile("ripple.log"); Console.WriteLine(); Console.WriteLine(); } }
public RipplePlan BuildPlan(SolutionGraph theGraph) { var allSolutions = SelectSolutions(theGraph); return new RipplePlan(allSolutions, SkipBuild); }
public MoveExpression(SolutionGraph solutionGraph, string nugetName) { _solutionGraph = solutionGraph; _nugetName = nugetName; }