public IEnumerable <IPackageInfo> Load(IPackageLog log) { var exploder = BottleExploder.GetPackageExploder(log); var reader = new BottleManifestReader(new FileSystem(), GetContentFolderForPackage); return(FubuMvcPackageFacility.GetPackageDirectories().SelectMany(dir => { return exploder.ExplodeDirectory(new ExplodeDirectory() { DestinationDirectory = FubuMvcPackageFacility.GetExplodedPackagesDirectory(), BottleDirectory = dir, Log = log }); }).Select(dir => reader.LoadFromFolder(dir))); }
public FubuMvcZipFilePackageLoader() : base(FubuMvcPackageFacility.GetExplodedPackagesDirectory(), FubuMvcPackageFacility.GetPackageDirectories() ) { }