public ProjectReleaseInstallation(ProjectRelease projectRelease, string installationDirectory, string solutionName = null, string solutionVersion = null) { this.ProjectRelease = projectRelease; this.ProjectDirectory = String.Format("{0}/RADS/projects/{1}", installationDirectory, projectRelease.Name); this.ProjectReleaseDirectory = String.Format("{0}/releases/{1}", this.ProjectDirectory, projectRelease.Version); Directory.CreateDirectory(this.ProjectReleaseDirectory); this.ProjectRelease.ReleaseManifest.Write(this.ProjectReleaseDirectory + "/releasemanifest"); string solutionReleaseDirectory = null; if (solutionName != null && solutionVersion != null) { solutionReleaseDirectory = String.Format("{0}/RADS/solutions/{1}/releases/{2}", installationDirectory, solutionName, solutionVersion); } this.ProjectReleaseArchivedFileInstaller = new ProjectReleaseArchivedFileInstaller(this.ProjectDirectory); this.ProjectReleaseManagedFileInstaller = new ProjectReleaseManagedFileInstaller(this.ProjectDirectory); this.ProjectReleaseDeployedFileInstaller = new ProjectReleaseDeployedFileInstaller(this.ProjectReleaseDirectory, solutionReleaseDirectory); }
public ProjectReleaseSimpleFileInstaller(string installationDirectory, ProjectRelease projectRelease, bool fileVersionInPath) { this.InstallationDirectory = installationDirectory; this.ProjectRelease = projectRelease; this.FileVersionInPath = fileVersionInPath; }