Exemple #1
0
        protected override void ProcessRecord()
        {
            var command  = new OeCommand(OeCommands.DbMan);
            var nameArgs = this.All ? " -all" : $" -name {this.Name}";

            // Stop the database(s)
            this.WriteVerbose($"Stop {nameArgs}");
            command.Run($"-stop {nameArgs}");

            // Start the database(s)
            this.WriteVerbose($"Start {nameArgs}");
            command.Run($"-start {nameArgs}");
        }
Exemple #2
0
        protected override void ProcessRecord()
        {
            var command = new OeCommand(OeCommands.ProDel, this.GetFullPath());

            if (this.NoConfirmationRequired)
            {
                command.CustomInputs.Add("y");
            }

            foreach (var db in this.GetDatabases())
            {
                command.Run(db.Name);
            }
        }
Exemple #3
0
        protected override void ProcessRecord()
        {
            var command           = new OeCommand(OeCommands.Asbman);
            var appServerNameArgs = this.GetAppServerNameArgs();

            // Stop the AppServer(s)
            var args = $"-stop {appServerNameArgs}";

            this.WriteVerbose($"{OeCommands.Asbman} {args}");
            command.Run(args);

            // Start the AppServer(s)
            args = $"-start {appServerNameArgs}";
            this.WriteVerbose($"{OeCommands.Asbman} {args}");
            command.Run(args);
        }