public static ZipFilePackageLoader BuildZipFilePackageLoader(string applicationPath, FileSystem fileSystem) { var zipFileManifestReader = new PackageManifestReader(applicationPath, fileSystem, ZipFilePackageLoader.GetContentFolderForPackage); PackageExploder packageExploder = PackageExploder.GetPackageExploder(fileSystem); return(new ZipFilePackageLoader(zipFileManifestReader, packageExploder)); }
public IEnumerable <IPackageInfo> Load(IPackageLog log) { var exploder = PackageExploder.GetPackageExploder(log); var reader = new PackageManifestReader(new FileSystem(), GetContentFolderForPackage); return(FubuMvcPackageFacility.GetPackageDirectories().SelectMany(dir => { return exploder.ExplodeDirectory(new ExplodeDirectory() { DestinationDirectory = FubuMvcPackageFacility.GetExplodedPackagesDirectory(), PackageDirectory = dir, Log = log }); }).Select(dir => reader.LoadFromFolder(dir))); }