Ejemplo n.º 1
0
        public void Apply(IGenerationContext generationContext)
        {
            var projectName = generationContext.GetArg(0, "<project name>");
            var year = DateTime.Today.ToString("yyyy");
            var copyrightHolder = generationContext.GetArg(1, "<copyright holder>");

            generationContext.AddFolder(@"foo\bar\berry");
            generationContext.AddFile("README", new ContentGenerator(String.Format(ReadmeTemplate, projectName)));
            generationContext.AddFile("LICENSE", new ContentGenerator(String.Format(LicenceTemplate, year, copyrightHolder)));
            generationContext.AddFile("TODO", new ContentGenerator(TodoTemplate));
        }