Esempio n. 1
0
        public static void NuGetInit(this ICakeContext context, string source, string destination, NuGetInitSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var resolver = new NuGetToolResolver(context.FileSystem, context.Environment, context.Tools);
            var runner   = new NuGetIniter(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            runner.Init(source, destination, settings);
        }
Esempio n. 2
0
        protected override void RunTool()
        {
            var tool = new NuGetIniter(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Init(Source, Destination, Settings);
        }