2012-10-24 11:03:14 +03:00
|
|
|
<?php defined('SYSPATH') OR die('No direct script access.');
|
2011-01-21 01:57:03 +02:00
|
|
|
|
|
|
|
/**
|
2011-02-17 22:43:04 +02:00
|
|
|
* Displays the current status of migrations in all groups
|
2011-01-21 01:57:03 +02:00
|
|
|
*
|
|
|
|
* This task takes no config options
|
|
|
|
*
|
|
|
|
* @author Matt Button <matthew@sigswitch.com>
|
|
|
|
*/
|
2012-10-24 09:45:12 +03:00
|
|
|
class Task_Migrations_Status extends Minion_Task {
|
2011-01-21 01:57:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the task
|
|
|
|
*
|
2012-10-24 11:03:14 +03:00
|
|
|
* @param array $options Config for the task
|
2011-01-21 01:57:03 +02:00
|
|
|
*/
|
2012-10-24 09:06:52 +03:00
|
|
|
protected function _execute(array $options)
|
2011-01-21 01:57:03 +02:00
|
|
|
{
|
2012-10-24 11:03:14 +03:00
|
|
|
$model = new Model_Minion_Migration(Database::instance());
|
|
|
|
$view = new View('minion/task/migrations/status');
|
2011-01-21 01:57:03 +02:00
|
|
|
|
2011-02-17 22:43:04 +02:00
|
|
|
$view->groups = $model->get_group_statuses();
|
2011-01-21 01:57:03 +02:00
|
|
|
|
|
|
|
echo $view;
|
|
|
|
}
|
2012-10-24 11:03:14 +03:00
|
|
|
|
2011-01-21 01:57:03 +02:00
|
|
|
}
|