/** * Set up information about this task. * * @see lib/task/Task#configure() * * @return void */ protected function configure() { $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'))); parent::configure(); $this->namespace = 'notifications'; $this->name = 'install-notifier'; $this->briefDescription = 'Install a new Notifier'; $this->detailedDescription = 'This task installs a new Notifier by adding a NotificationType and its NotificationTypeAttributes.'; $this->addArgument('notifier', sfCommandArgument::REQUIRED, 'The name of the notifier being installed.'); }
protected function configure() { date_default_timezone_set('Europe/Zurich'); parent::configure(); $this->addOptions(array( new sfCommandOption('go', null, sfCommandOption::PARAMETER_NONE, 'Do the processing.'), new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application', 'backend'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environement', 'prod'), )); //new sfCommandOption('go', null, sfCommandOption::PARAMETER_NONE, 'Do the sync'), //new sfCommandOption('force', null, sfCommandOption::PARAMETER_NONE, 'Ignore sync and force upload for all files'), //new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application', 'frontend'), //new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environement', 'dev'), $this->namespace = 'lucene'; $this->name = 'rebuild'; $this->briefDescription = '....'; $this->detailedDescription = <<<EOF The [dropbox:sync|INFO] command pushes all new or modified files to you dropbox: [./symfony dropbox:sync|INFO] The Dropbox-account must be configured in [app.yml|COMMENT]: [dropbox: consumer_key: dgz37k324ogxtge consumer_secret: dgz37k324ogxtge token: dgz37k324ogxtge token_secret: dgz37k324ogxtge root: Website/Reports/|INFO] By default, the task is in dry-mode. To do a real sync, you must pass the [--go|COMMENT] option: [./symfony dropbox:sync --go|INFO] You can ignore the sync-status an force pushing all files to dropbox with the [--force|COMMENT] option: [./symfony dropbox:sync --go --force|INFO] EOF; }
/** * Default configuration. */ protected function configure() { parent::configure(); $this->addOptions(array(new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Application used', 'frontend'))); $this->addOptions(array(new sfCommandOption('config', false, sfCommandOption::PARAMETER_REQUIRED, 'The yaml config used by the plugin', 'default'), new sfCommandOption('check-running', false, sfCommandOption::PARAMETER_OPTIONAL, 'Check that the same task is not currently running'), new sfCommandOption('only-processed', false, sfCommandOption::PARAMETER_OPTIONAL, 'Record into database only if there were things processed by the task.'), new sfCommandOption('once-by-day', false, sfCommandOption::PARAMETER_OPTIONAL, 'Check that the task was not already executed once today.'))); }