public Project CreateProject(string name, string location) { var p = new Project { Name = name, Version = "1.0.0", // FIXME: set version Author = Environment.UserName, Company = "Some Company" // FIXME: set company name }; var repoPath = Path.Combine(location, name); // TODO: make this path a config setting _gitService.Clone(NebulaConfig.ProjectSkeletonRepo, repoPath); _fileUtil.DirectoryDelete(Path.Combine(repoPath, ".git"), true); _gitService.Init(repoPath); UpdateProjectConfig(p, repoPath); return(p); }
public void CleanUpTemp(string tmpPath) { _fileUtil.DirectoryDelete(tmpPath, true); }