Skip to content

Commit

Permalink
Added the SaveInstallationMessages method, because it is mission in S…
Browse files Browse the repository at this point in the history
…itecore 8
  • Loading branch information
Esben Boe Nielsen committed Jan 21, 2015
1 parent b9fe8b4 commit bb676c6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Sitecore.Ship.Infrastructure/Update/UpdatePackageRunner.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using Sitecore.IO;
using Sitecore.Ship.Core;
using Sitecore.Ship.Core.Contracts;
using Sitecore.Ship.Core.Domain;
Expand Down Expand Up @@ -55,7 +56,7 @@ public PackageManifest Execute(string packagePath, bool disableIndexing)
Sitecore.Configuration.Settings.Indexing.Enabled = true;
}

UpdateHelper.SaveInstallationMessages(entries, historyPath);
SaveInstallationMessages(entries, historyPath);
}
}
}
Expand All @@ -74,5 +75,14 @@ private PackageInstallationInfo GetInstallationInfo(string packagePath)
}
return info;
}

private string SaveInstallationMessages(List<ContingencyEntry> entries, string historyPath)
{
string path = Path.Combine(historyPath, "messages.xml");
FileUtil.EnsureFolder(path);
using (FileStream fileStream = File.Create(path))
new XmlEntrySerializer().Serialize(entries, (Stream)fileStream);
return path;
}
}
}

0 comments on commit bb676c6

Please sign in to comment.