public static IAsciiDoctorJRunner AsciiDoctorJ(
            this ICakeContext context,
            Action <AsciiDoctorJRunnerSettings> configure)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var runner = new AsciiDoctorJRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.Run(configure));
        }
Exemple #2
0
        public static void AsciiDoctorJ(
            this ICakeContext context,
            AsciiDoctorJRunnerSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            var runner = new AsciiDoctorJRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run(settings);
        }