Rename commands to task-manager namespace

This commit is contained in:
Romain Neutron
2013-10-28 14:19:51 +01:00
parent 6ef6387abf
commit 24d0a5f88b
7 changed files with 10 additions and 10 deletions

View File

@@ -20,8 +20,8 @@ class SchedulerStart extends Command
{
public function __construct()
{
parent::__construct('scheduler:start');
$this->setDescription('Starts Phraseanet scheduler');
parent::__construct('task-manager:scheduler:start');
$this->setDescription('Starts Task-Manager scheduler');
}
protected function doExecute(InputInterface $input, OutputInterface $output)

View File

@@ -21,9 +21,9 @@ class SchedulerState extends Command
{
public function __construct()
{
parent::__construct('scheduler:state');
parent::__construct('task-manager:scheduler:state');
$this
->setDescription('Returns Phraseanet scheduler status')
->setDescription('Returns Task-Manager scheduler state')
->addOption('short', null, InputOption::VALUE_NONE, 'print short result, ie: <info>stopped()</info> | <info>started(12345)</info> | <info>tostop(12345)</info> | <info>stopping(12345)</info>');
}

View File

@@ -20,8 +20,8 @@ class SchedulerStop extends Command
{
public function __construct()
{
parent::__construct('scheduler:stop');
$this->setDescription('Starts Phraseanet scheduler');
parent::__construct('task-manager:scheduler:stop');
$this->setDescription('Starts Task-Manager scheduler. It updates the scheduler configuration.');
}
protected function doExecute(InputInterface $input, OutputInterface $output)

View File

@@ -20,7 +20,7 @@ class TaskList extends Command
{
public function __construct()
{
parent::__construct('task:list');
parent::__construct('task-manager:task:list');
}
protected function doExecute(InputInterface $input, OutputInterface $output)

View File

@@ -22,7 +22,7 @@ class TaskManagerCommand extends Command
{
public function __construct()
{
parent::__construct('task-manager:run');
parent::__construct('task-manager:scheduler:run');
}
public function signalHandler($signal)

View File

@@ -29,7 +29,7 @@ class TaskRun extends Command
{
public function __construct()
{
parent::__construct('task:run');
parent::__construct('task-manager:task:run');
$this->addArgument('task_id', InputArgument::REQUIRED, 'The id of the task to run', null)
->addOption('max-memory', null, InputOption::VALUE_REQUIRED, '')

View File

@@ -21,7 +21,7 @@ class TaskState extends Command
{
public function __construct()
{
parent::__construct('task:state');
parent::__construct('task-manager:task:state');
$this
->addArgument('task_id', InputArgument::REQUIRED, 'The task_id to test')