コード例 #1
0
        public static void Install(this ICakeContext context, UniversalPackageInstallSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var resolver = new UPackToolResolver(context.FileSystem, context.Environment, context.Tools);
            var runner   = new UniversalPackageInstaller(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            runner.Execute(settings);
        }
        protected override void RunTool()
        {
            var tool = new UniversalPackageInstaller(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Execute(Settings);
        }