Exemple #1
0
        public static void JekyllBuild(this ICakeContext context, JekyllBuildSettings settings)
        {
            if (context is null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

            AddinInformation.LogVersionInformation(context.Log);

            var command = new JekyllBuildCommand(context.FileSystem, context.Environment, context.ProcessRunner,
                                                 context.Tools, context.Log);

            command.Build(settings);
        }
Exemple #2
0
        protected override void RunTool()
        {
            var tool = new JekyllBuildCommand(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.Build(Settings);
        }