コード例 #1
0
        public static void JekyllNew(this ICakeContext context, DirectoryPath path, JekyllNewSettings settings)
        {
            if (context is null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

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

            AddinInformation.LogVersionInformation(context.Log);

            settings.Path = path;

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

            command.New(settings);
        }
コード例 #2
0
        protected override void RunTool()
        {
            var tool = new JekyllNewCommand(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.New(Settings);
        }