Exemplo n.º 1
0
        public static void AppUnpack(this ICakeContext context, FilePath inputPackage, DirectoryPath outputDirectory, AppPackagerSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var resolver = new AppPackagerResolver(context.FileSystem, context.Environment, context.Tools, context.Registry);
            var unPacker = new AppUnpacker(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            unPacker.Unpack(inputPackage, outputDirectory, settings);
        }
        protected override void RunTool()
        {
            var tool = new AppUnpacker(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Unpack(InputPackage, OutputDirectory, Settings);
        }