Пример #1
0
        public static void AppDecrypter(this ICakeContext context, FilePath inputPackage, FilePath outputPackage, FilePath keyFile, AppPackagerSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

            decrypter.Decrypt(inputPackage, outputPackage, keyFile, settings);
        }
Пример #2
0
        protected override void RunTool()
        {
            var tool = new AppDecrypter(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Decrypt(InputPackage, OutputPackage, KeyFile, Settings);
        }