Exemple #1
0
        public void DeployHelloWorld()
        {
            IFileSystem       fileSystem = new FileSystem();
            var               settings   = new DeploymentSettings(@"C:\dev\test-profile\");
            IBottleRepository bottles    = new BottleRepository(fileSystem, new PackageExploder(new ZipFileService(fileSystem), new PackageExploderLogger(s => { }), fileSystem), settings);

            var initializer = new IisFubuInitializer(fileSystem, new DeploymentSettings());

            var deployer = new IisFubuDeployer(fileSystem, bottles);


            var directive = new FubuWebsite();

            directive.HostBottle          = "test";
            directive.WebsiteName         = "fubu";
            directive.WebsitePhysicalPath = @"C:\dev\test-web";
            directive.VDir             = "bob";
            directive.VDirPhysicalPath = @"C:\dev\test-app";
            directive.AppPool          = "fubizzle";

            directive.DirectoryBrowsing = Activation.Enable;


            initializer.Execute(directive, new HostManifest("something"), new PackageLog());

            var host = new HostManifest("a");

            deployer.Execute(directive, host, new PackageLog());
        }
        public void DeployHelloWorld()
        {
            IFileSystem fileSystem = new FileSystem();
            var settings = new DeploymentSettings(@"C:\dev\test-profile\");
            IBottleRepository bottles = new BottleRepository(fileSystem, new PackageExploder(new ZipFileService(fileSystem), new PackageExploderLogger(s=>{ }), fileSystem ), settings);

            var initializer = new IisFubuInitializer(fileSystem, new DeploymentSettings());

            var deployer = new IisFubuDeployer(fileSystem, bottles);

            var directive = new FubuWebsite();
            directive.HostBottle = "test";
            directive.WebsiteName = "fubu";
            directive.WebsitePhysicalPath = @"C:\dev\test-web";
            directive.VDir = "bob";
            directive.VDirPhysicalPath = @"C:\dev\test-app";
            directive.AppPool = "fubizzle";

            directive.DirectoryBrowsing = Activation.Enable;

            initializer.Execute(directive, new HostManifest("something"), new PackageLog());

            var host = new HostManifest("a");

            deployer.Execute(directive, host, new PackageLog());
        }