Beispiel #1
0
        public override bool Execute(BottleInput input)
        {
            // TODO -- duplication here
            string solutionFile = SolutionFinder.FindSolutionFile();

            if (solutionFile == null)
            {
                return(false);
            }

            var request = BuildTemplateRequest(input, solutionFile);

            var plan = NewCommand.BuildTemplatePlan(request);

            // TODO -- try to add CopyReferences from the parent
            NewCommand.ExecutePlan(plan, () => initializeTheBottle(input, plan));

            return(true);
        }
Beispiel #2
0
        public override bool Execute(EnhanceInput input)
        {
            var solutionFile = SolutionFinder.FindSolutionFile();

            if (solutionFile == null)
            {
                return(false);
            }

            var request = BuildTemplateRequest(input, solutionFile);

            var plan = NewCommand.BuildTemplatePlan(request);

            plan.Solution = Solution.LoadFrom(solutionFile);

            NewCommand.ExecutePlan(plan);

            return(true);
        }