public static void KickItOutThereAlready(Deployment deployment, DeploymentArguments args) { _inspector = new DropkickDeploymentInspector(args.ServerMappings); if (args.Role != "ALL") _inspector.RolesToGet(args.Role.Split(',')); var plan = _inspector.GetPlan(deployment); //HOW TO PLUG IN args.Role //TODO: should be able to block here _actions[args.Command](plan); }
public static DeploymentResult KickItOutThereAlready(Deployment deployment, DeploymentArguments args) { _inspector = new DropkickDeploymentInspector(args.ServerMappings); if (args.Role != "ALL") _inspector.RolesToGet(args.Role.Split(',')); var plan = _inspector.GetPlan(deployment); plan.AbortOnError = args.AbortOnError; //HOW TO PLUG IN args.Role //TODO: should be able to block here return plan.Run(args.Command); }
public static void KickItOutThereAlready(Deployment deployment, DeploymentArguments args) { _inspector = new DropkickDeploymentInspector(args.ServerMappings); if (args.Role != "ALL") { _inspector.RolesToGet(args.Role.Split(',')); } var plan = _inspector.GetPlan(deployment); //HOW TO PLUG IN args.Role //TODO: should be able to block here _actions[args.Command](plan); }
public void TryDb() { var dep = new TwoRoleDeploy(); dep.Initialize(new object()); 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); }
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); }
public void TryDb() { var dep = new TwoRoleDeploy(); dep.Initialize(new object()); 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 SampleConfiguration()); var maps = new RoleToServerMap(); maps.AddMap("DB", "BOB"); maps.AddMap("WEB", "BILL"); var ins = new DropkickDeploymentInspector(maps); ins.RolesToGet("Web"); //how to set the roles var plan = ins.GetPlan(dep); Assert.AreEqual(1, plan.RoleCount); }
public void TryWeb() { var dep = new TwoRoleDeploy(); dep.Initialize(new SampleConfiguration()); var maps = new RoleToServerMap(); maps.AddMap("DB", "BOB"); maps.AddMap("WEB", "BILL"); var ins = new DropkickDeploymentInspector(maps); ins.RolesToGet("Web"); //how to set the roles var plan = ins.GetPlan(dep); Assert.AreEqual(1, plan.RoleCount); }