public DeploymentArguments()
 {
     ServerMappings = new RoleToServerMap();
     Environment = "LOCAL";
     Role = "ALL";
     Deployment = "SEARCH";
     Command = DeploymentCommands.Trace;
     SettingsPath = ".\\settings";
 }
Example #2
0
 public void	 Merge(RoleToServerMap map)
 {
     foreach (var mapping in map._mappings)
     {
         foreach (var server in mapping.Value)
         {
             _mappings[mapping.Key].Add(server);
         }
     }
 }
        public void EstablishContext()
        {
            Deployment = new TwoRoleDeploy();
            Deployment.Initialize(new SampleConfiguration());

            Map = new RoleToServerMap();
            Map.AddMap("Web", "SrvTopeka09");
            Map.AddMap("Web", "SrvTopeka19");
            Inspector = new DropkickDeploymentInspector(Map);
        }
        public void EstablishContext()
        {
            Deployment = new TwoPartDeploy();
            Inspector = new DropkickDeploymentInspector();
            Map = new RoleToServerMap();
            Map.AddMap("Web", "SrvTopeka09");
            Map.AddMap("Web", "SrvTopeka19");
            Map.AddMap("Db", "SrvTopeka02");

            BecauseOf();
        }
        public void TryWeb()
        {
            var dep = new TwoPartDeploy();
            var maps = new RoleToServerMap();
            maps.AddMap("WEB", "BOB");

            var ins = new DropkickDeploymentInspector();

            var plan = ins.GetPlan(dep, maps);

            Assert.AreEqual(1, plan.RoleCount);
        }
        public void TryAll()
        {
            var dep = new TwoRoleDeploy();
            dep.Initialize(new object());

            var maps = new RoleToServerMap();
            maps.AddMap("DB", "BOB");

            var ins = new DropkickDeploymentInspector(maps);

            var plan = ins.GetPlan(dep);

            Assert.AreEqual(2, plan.RoleCount);
        }
        public void TryDb()
        {
            var dep = new TwoRoleDeploy();
            dep.Initialize(new SampleConfiguration());

            var maps = new RoleToServerMap();
            maps.AddMap("DB","BOB");

            var ins = new DropkickDeploymentInspector(maps);
            ins.RolesToGet("Db");

            var plan = ins.GetPlan(dep);

            Assert.AreEqual(1, plan.RoleCount);
        }
        public void TryWeb()
        {
            var dep = new TwoRoleDeploy();
            dep.Initialize(new object());

            var maps = new RoleToServerMap();

            var ins = new DropkickDeploymentInspector(maps);

            ins.RolesToGet("Web");

            //how to set the roles
            var plan = ins.GetPlan(dep);

            Assert.AreEqual(1, plan.RoleCount);
        }
Example #9
0
        static void DisplayServerMappingsForEnvironment(RoleToServerMap mappings)
        {
            _coarseLog.Debug("");
            _coarseLog.Info("Server Mappings");
            foreach (var role in mappings.Roles())
            {
                _coarseLog.InfoFormat("  '{0}'", role);

                foreach (var server in mappings.GetServers(role))
                {
                    _coarseLog.InfoFormat("    '{0}'", server.Name);
                }
            }
        }