Console/Command/Task/AdvancedTask.php
protected function _schedule($command, $path, array $arguments, array $options) {
		$TaskClient = ClassRegistry::init('Task.TaskClient');
		$task = $TaskClient->add($command, $path, $arguments, $options);
		if ($task) {
			$waitFor = empty($options['dependsOn']) ? 'none' : implode(', ', $options['dependsOn']) . ' task(s)';
			$this->out("Task #{$TaskClient->id} successfuly added, wait for $waitFor");
		} else {
			$this->err('Error! Task not added!');
		}
		return $task;
	}
protected function _schedule($command, $path, array $arguments, array $options) {
		$TaskClient = ClassRegistry::init('Task.TaskClient');
		$task = $TaskClient->add($command, $path, $arguments, $options);
		if ($task) {
			$waitFor = empty($options['dependsOn']) ? 'none' : implode(', ', $options['dependsOn']) . ' task(s)';
			$this->out("Task #{$TaskClient->id} successfuly added, wait for $waitFor");
		} else {
			$this->err('Error! Task not added!');
		}
		return $task;
	}
protected function _schedule ( $ command , $ path , array $ arguments , array $ options ) { $ TaskClient = ClassRegistry :: init ( 'Task.TaskClient' ) ; $ task = $ TaskClient -> add ( $ command , $ path , $ arguments , $ options ) ; if ( $ task ) { $ waitFor = empty ( $ options [ 'dependsOn' ] ) ? 'none' : implode ( ', ' , $ options [ 'dependsOn' ] ) . ' task(s)' ; $ this -> out ( "Task #{$TaskClient->id} successfuly added, wait for $waitFor" ) ; } else { $ this -> err ( 'Error! Task not added!' ) ; } return $ task ; }
Adds script to sceduler

@param string $command
@param string $path
@param array $arguments
@param array $options
Adds script to sceduler