コード例 #1
0
ファイル: Program.cs プロジェクト: ErikEJ/roundhouse
        private static void run_update_check(ConfigurationPropertyHolder configuration)
        {
            if (!configuration.Silent)
            {
                Console.WriteLine("NOTE: Running this command will create the Roundhouse tables, if they don't exist.");
                Console.WriteLine("Please press enter when ready to kick...");
                Console.ReadLine();
            }

            // Info and warn level logging is turned off, in order to make it easy to use the output of this command.
            change_log_level(Level.Error);

            RoundhouseUpdateCheckRunner update_check_runner = get_update_check_runner(configuration, get_migration_runner(configuration));

            update_check_runner.run();

            if (!configuration.Silent)
            {
                Console.WriteLine("{0}Please press enter to continue...", Environment.NewLine);
                Console.Read();
            }
        }