Implementing "package install" command based on NuGet

--HG--
branch : nuget
This commit is contained in:
Sebastien Ros
2010-11-05 18:17:12 -07:00
parent 08eb862153
commit 70848ef2dd
7 changed files with 72 additions and 22 deletions

View File

@@ -167,9 +167,11 @@ namespace Orchard.Packaging.Controllers {
}
public ActionResult Install(string syndicationId, string cameFrom) {
#if REFACTORING
var packageData = _packageManager.Download(syndicationId);
_packageManager.Install(packageData.PackageStream);
_notifier.Information(T("Installed module"));
#endif
return RedirectToAction(cameFrom == "Themes" ? "ThemesIndex" : "ModulesIndex");
}
}