public IEnumerable <IPackageInfo> Load(IPackageLog log) { var applicationDirectory = FubuMvcPackageFacility.GetApplicationPath(); //this finds all of the bottles in <applicationDirectory>/bin/packages //then calls load from folder on each exploded zip return(_exploder.ExplodeAllZipsAndReturnPackageDirectories(applicationDirectory, log) .Select(dir => _reader.LoadFromFolder(dir))); }
public static AssemblyPackageInfo CreateFor(Assembly assembly) { var package = new AssemblyPackageInfo(assembly); var exploder = FubuMvcPackageFacility.GetPackageExploder(new FileSystem()); exploder.ExplodeAssembly(FubuMvcPackageFacility.GetApplicationPath(), assembly, package.Files); return(package); }
public IEnumerable <IPackageInfo> Load(IPackageLog log) { var assemblies = _assemblyFinder.FindAssemblies(FubuMvcPackageFacility.GetApplicationPath()); return(assemblies.Select(fileName => { return AssemblyPackageInfo.For(fileName); })); }
public IEnumerable <string> FindAssemblies(string applicationDirectory) { var assemblyNames = new FileSet { Include = "*.dll", DeepSearch = false }; var fileSystem = new FileSystem(); return(FubuMvcPackageFacility .GetPackageDirectories() .SelectMany(dir => fileSystem.FindFiles(dir, assemblyNames))); }
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 IEnumerable <IPackageInfo> Load() { var applicationDirectory = FubuMvcPackageFacility.GetApplicationPath(); return(_exploder.ExplodeAllZipsAndReturnPackageDirectories(applicationDirectory).Select(dir => _reader.LoadFromFolder(dir))); }
public IEnumerable <IPackageInfo> Load() { var assemblies = _assemblyFinder.FindAssemblies(FubuMvcPackageFacility.GetApplicationPath()); return(assemblies.Select(assembly => AssemblyPackageInfo.CreateFor(Assembly.Load(assembly)).As <IPackageInfo>())); }
private static IEnumerable <string> findPackageFolders(string applicationDirectory) { FubuMvcPackageFacility.PhysicalRootPath = applicationDirectory; return(FubuMvcPackageFacility.GetPackageDirectories()); }
public FubuMvcZipFilePackageLoader() : base(FubuMvcPackageFacility.GetExplodedPackagesDirectory(), FubuMvcPackageFacility.GetPackageDirectories() ) { }