Inheritance: FubuMVC.Core.Packaging.PackageFacility
Esempio n. 1
0
        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)));
        }
Esempio n. 2
0
        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);
            }));
        }
Esempio n. 4
0
        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)));
        }
Esempio n. 5
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)));
        }
Esempio n. 6
0
        public IEnumerable <IPackageInfo> Load()
        {
            var applicationDirectory = FubuMvcPackageFacility.GetApplicationPath();

            return(_exploder.ExplodeAllZipsAndReturnPackageDirectories(applicationDirectory).Select(dir => _reader.LoadFromFolder(dir)));
        }
Esempio n. 7
0
        public IEnumerable <IPackageInfo> Load()
        {
            var assemblies = _assemblyFinder.FindAssemblies(FubuMvcPackageFacility.GetApplicationPath());

            return(assemblies.Select(assembly => AssemblyPackageInfo.CreateFor(Assembly.Load(assembly)).As <IPackageInfo>()));
        }
Esempio n. 8
0
 private static IEnumerable <string> findPackageFolders(string applicationDirectory)
 {
     FubuMvcPackageFacility.PhysicalRootPath = applicationDirectory;
     return(FubuMvcPackageFacility.GetPackageDirectories());
 }
Esempio n. 9
0
 public FubuMvcZipFilePackageLoader()
     : base(FubuMvcPackageFacility.GetExplodedPackagesDirectory(), FubuMvcPackageFacility.GetPackageDirectories()
            )
 {
 }