fuel/fuel/packages/auth/tasks/simple2orm.php
public static function run()
	{
		// fetch the commandline options
		$run_migration = \Cli::option('migrate', \Cli::option('m', false));
		$run_validation = $run_migration ? true : \Cli::option('validate', \Cli::option('v', false));

		// if no run options are present, show the help
		if ( ! $run_migration and ! $run_validation )
		{
			return static::help();
		}

		// step 1: run validation
		$validated = true;
		if ($run_validation)
		{
			$validated = static::run_validation();
		}

		// step 2: run migration
		if ($run_migration)
		{
			if ($validated)
			{
				$migrated = static::run_migration();
				if ($migrated)
				{
					\Cli::write('Migration succesfully finished', 'light_green');
				}
				else
				{
					\Cli::write("\n".'Migration failed. Skipping the remainder of the migration. Please correct the errors and run again.', 'light_red');
				}
			}
			else
			{
				\Cli::write("\n".'Validation failed. Skipping the actual migration. Please correct the errors.', 'light_red');
			}
		}
	}
public static function run()
	{
		// fetch the commandline options
		$run_migration = \Cli::option('migrate', \Cli::option('m', false));
		$run_validation = $run_migration ? true : \Cli::option('validate', \Cli::option('v', false));

		// if no run options are present, show the help
		if ( ! $run_migration and ! $run_validation )
		{
			return static::help();
		}

		// step 1: run validation
		$validated = true;
		if ($run_validation)
		{
			$validated = static::run_validation();
		}

		// step 2: run migration
		if ($run_migration)
		{
			if ($validated)
			{
				$migrated = static::run_migration();
				if ($migrated)
				{
					\Cli::write('Migration succesfully finished', 'light_green');
				}
				else
				{
					\Cli::write("\n".'Migration failed. Skipping the remainder of the migration. Please correct the errors and run again.', 'light_red');
				}
			}
			else
			{
				\Cli::write("\n".'Validation failed. Skipping the actual migration. Please correct the errors.', 'light_red');
			}
		}
	}
public static function run ( ) { // fetch the commandline options $ run_migration = \ Cli :: option ( 'migrate' , \ Cli :: option ( 'm' , false ) ) ; $ run_validation = $ run_migration ? true : \ Cli :: option ( 'validate' , \ Cli :: option ( 'v' , false ) ) ; // if no run options are present, show the help if ( ! $ run_migration and ! $ run_validation ) { return static :: help ( ) ; } // step 1: run validation $ validated = true ; if ( $ run_validation ) { $ validated = static :: run_validation ( ) ; } // step 2: run migration if ( $ run_migration ) { if ( $ validated ) { $ migrated = static :: run_migration ( ) ; if ( $ migrated ) { \ Cli :: write ( 'Migration succesfully finished' , 'light_green' ) ; } else { \ Cli :: write ( "\n" . 'Migration failed. Skipping the remainder of the migration. Please correct the errors and run again.' , 'light_red' ) ; } } else { \ Cli :: write ( "\n" . 'Validation failed. Skipping the actual migration. Please correct the errors.' , 'light_red' ) ; } } }
Show help.

Usage (from command line):

php oil refine simple2orm
Show help .