2011-01-31 19:38:04 +02: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>
|
|
|
|
*/
|
2011-07-02 06:47:01 +03:00
|
|
|
class Minion_Task_Migrations_Status extends Minion_Task {
|
2011-01-21 01:57:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the task
|
|
|
|
*
|
|
|
|
* @param array Config for the task
|
|
|
|
*/
|
|
|
|
public function execute(array $config)
|
|
|
|
{
|
|
|
|
$db = Database::instance();
|
|
|
|
$model = new Model_Minion_Migration($db);
|
|
|
|
|
2011-07-02 06:47:01 +03:00
|
|
|
$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;
|
|
|
|
}
|
|
|
|
}
|