Exemple #1
0
        private void logExplodedDirectories(string applicationDirectory)
        {
            var explodedDirectory   = BottleFiles.GetExplodedPackagesDirectory(applicationDirectory);
            var existingDirectories = _fileSystem.ChildDirectoriesFor(explodedDirectory);

            _logger.WriteExistingDirectories(applicationDirectory, existingDirectories);
        }
Exemple #2
0
        public void CleanAll(string applicationDirectory)
        {
            var directory = BottleFiles.GetExplodedPackagesDirectory(applicationDirectory);

            clearExplodedDirectories(directory);

            // This is here for legacy installations that may have old exploded packages in bin/fubu-packages
            clearExplodedDirectories(BottleFiles.GetApplicationPackagesDirectory(applicationDirectory));
        }
Exemple #3
0
        public IEnumerable <string> ExplodeAllZipsAndReturnPackageDirectories(string applicationDirectory, IPackageLog log)
        {
            LogWriter.Current.Trace("Exploding all the package zip files for the application at " + applicationDirectory);

            return(ExplodeDirectory(new ExplodeDirectory()
            {
                DestinationDirectory = BottleFiles.GetExplodedPackagesDirectory(applicationDirectory),
                BottleDirectory = BottleFiles.GetApplicationPackagesDirectory(applicationDirectory),
                Log = log
            }));
        }
Exemple #4
0
        protected void thePackagesAlreadyExplodedAre(params string[] packageNames)
        {
            var directories = packageNames.Select(x =>
            {
                return(BottleFiles.GetDirectoryForExplodedPackage(theApplicationDirectory, x));
            });

            directories.Each(dir =>
            {
                MockFor <IFileSystem>().Stub(x => x.DirectoryExists(dir)).Return(true);
            });

            MockFor <IFileSystem>().Stub(x => x.ChildDirectoriesFor(BottleFiles.GetExplodedPackagesDirectory(theApplicationDirectory)))
            .Return(directories);

            MockFor <IFileSystem>().Stub(x => x.ChildDirectoriesFor(BottleFiles.GetApplicationPackagesDirectory(theApplicationDirectory)))
            .Return(new string[0]);
        }