Import from internal git
This commit is contained in:
23
Generator/Daos/TemplateDao.cs
Normal file
23
Generator/Daos/TemplateDao.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Core;
|
||||
using Core.Actions;
|
||||
using Generator.DataSource.Settings;
|
||||
using Generator.Mappers;
|
||||
|
||||
namespace Generator.Daos;
|
||||
|
||||
public class TemplateDao : AbstractDao
|
||||
{
|
||||
public TemplateDao(ConfigManager confManager) : base(confManager)
|
||||
{ }
|
||||
|
||||
public PlantUmlExport PlantUml(ISpecFile file)
|
||||
{
|
||||
var config = ConfManager.Templates.Map();
|
||||
return new PlantUmlExport
|
||||
{
|
||||
LocalRoot = ConfManager.GetBase().LocalRoot,
|
||||
Template = config.PlantUml,
|
||||
Output = ConfManager.GetGeneral().ApiFolder.ConcatenateWith([file.Folder, $"{file.Name}.puml"])
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user