Example #1
0
    public static void SevenZip(this ICakeContext context, SevenZipSettings settings, Action <CommandBuilder> action)
    {
        var builder = new CommandBuilder();

        action(builder);
        settings.Command = builder.Command;
        SevenZip(context, settings);
    }
Example #2
0
    public static void SevenZip(this ICakeContext context, SevenZipSettings settings)
    {
        var runner = new SevenZipRunner(
            context.FileSystem,
            context.Environment,
            context.ProcessRunner,
            context.Tools,
            context.Log,
            context.Registry);

        runner.Run(settings);
    }