Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
 public FubuMvcZipFilePackageLoader()
     : base(FubuMvcPackageFacility.GetExplodedPackagesDirectory(), FubuMvcPackageFacility.GetPackageDirectories()
            )
 {
 }