Example #1
0
        public void Execute(SolutionInput input, IRippleStepRunner runner)
        {
            var feeds = Solution.Feeds.ToArray();

            if (input is IOverrideFeeds)
            {
                var overrides = input.As<IOverrideFeeds>().Feeds();
                if (overrides.Any())
                {
                    Solution.ClearFeeds();
                    Solution.AddFeeds(overrides);
                }
            }

            var missing = Solution.MissingNugets().ToList();
            var nugets = new List<INugetFile>();

            if (missing.Any())
            {
                var tasks = missing.Select(x => restore(x, Solution, nugets)).ToArray();

                Task.WaitAll(tasks);
            }

            Solution.ClearFeeds();
            Solution.AddFeeds(feeds);

            runner.Set(new DownloadedNugets(nugets));
        }
Example #2
0
        public void Execute(SolutionInput input, IRippleStepRunner runner)
        {
            var nugetRunner = new NugetStepRunner(Solution);
            var aggregatePlan = PlanFor(input.As<INugetOperationContext>(), Solution);

            RippleLog.InfoMessage(aggregatePlan);

            aggregatePlan.Execute(nugetRunner);
        }
        public void Execute(SolutionInput input, IRippleStepRunner runner)
        {
            var missing = runner.Get<DownloadedNugets>();

            missing.Each(nuget =>
            {
                var dir = Solution.PackagesDirectory();
                RippleLog.Debug("Exploding " + nuget.ToString());
                nuget.ExplodeTo(dir);
            });
        }
Example #4
0
 public static Solution For(SolutionInput input)
 {
     // TODO -- Need to allow a specific solution
     // TODO -- Need to be smarter about the current directory maybe
     return SolutionBuilder.ReadFromCurrentDirectory();
 }
Example #5
0
 public void Execute(SolutionInput input, IRippleStepRunner runner)
 {
     var attacher = new ReferenceAttacher(Solution);
     attacher.Attach();
 }
Example #6
0
 public void Execute(SolutionInput input, IRippleStepRunner runner)
 {
     Solution.AssertIsValid();
 }
Example #7
0
 public void Execute(SolutionInput input, IRippleStepRunner runner)
 {
     DirectiveProcessor.ProcessDirectives(Solution);
 }