public void Generate(NuspecGenerationReport report) { var files = new FileSystem(); var targetFile = report.FindNuspecFile(_template); files.Copy(_template.Spec.Filename, targetFile); if (report.UpdateDependencies) { generateNuspec(targetFile); } }
public void Generate(NuspecGenerationReport report) { var files = new FileSystem(); var targetFile = report.FindNuspecFile(_template); files.Copy(_template.Spec.Filename, targetFile); if (report.UpdateDependencies) { generateNuspec(targetFile); } }
public NuspecGenerationReport Execute(bool updateDependencies) { var rootPackagingDir = _solution.NugetSpecFolder.ParentDirectory(); var outputDir = rootPackagingDir.AppendPath(Guid.NewGuid().ToString()).ToFullPath(); var files = new FileSystem(); files.ForceClean(outputDir); files.CreateDirectory(outputDir); RippleLog.Info("Generating nuspec templates at: " + outputDir); var report = new NuspecGenerationReport(outputDir, updateDependencies); _plans.Each(plan => plan.Generate(report)); return(report); }
public NuspecGenerationReport Execute(bool updateDependencies) { var rootPackagingDir = _solution.NugetSpecFolder.ParentDirectory(); var outputDir = rootPackagingDir.AppendPath(Guid.NewGuid().ToString()).ToFullPath(); var files = new FileSystem(); files.ForceClean(outputDir); files.CreateDirectory(outputDir); RippleLog.Info("Generating nuspec templates at: " + outputDir); var report = new NuspecGenerationReport(outputDir, updateDependencies); _plans.Each(plan => plan.Generate(report)); return report; }