public static void Pack(this ICakeContext context, UniversalPackagePackSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

            runner.Execute(settings);
        }
Ejemplo n.º 2
0
        protected override void RunTool()
        {
            var tool = new UniversalPackagePacker(this.FileSystem, this.Environment, this.ProcessRunner, this.Tools, this.Resolver);

            tool.Execute(this.Settings);
        }