-
Notifications
You must be signed in to change notification settings - Fork 0
/
Project.cs
39 lines (33 loc) · 989 Bytes
/
Project.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Jeevika
{
public class Project : Base
{
public string Name { get; set; }
public string Description { get; set; }
public List<Application> Applications { get; set; } = new List<Application>();
public Application AddApplication(Application application)
{
Applications.Add(application);
return application;
}
public void Generate(string projectId = null)
{
if(projectId != null)
{
BasePath = Path.Combine(BasePath, projectId);
}
var projectDir = Path.Combine(BasePath, Name);
base.CreateDirectory(projectDir);
foreach (Application application in Applications)
{
application.Generate(projectDir);
}
}
}
}