Beispiel #1
0
        public static void AppEncrypter(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 encrypter = new AppEncrypter(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            encrypter.Encrypt(inputPackage, outputPackage, keyFile, settings);
        }
Beispiel #2
0
        protected override void RunTool()
        {
            var tool = new AppEncrypter(FileSystem, Environment, ProcessRunner, Tools, Resolver);

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