예제 #1
0
        public static void AppUnbundle(this ICakeContext context, FilePath inputBundle, 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 unBundler = new AppUnbundler(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            unBundler.Unpack(inputBundle, outputDirectory, settings);
        }
        protected override void RunTool()
        {
            var tool = new AppUnbundler(FileSystem, Environment, ProcessRunner, Tools, Resolver);

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