Changeset 1650
- Timestamp:
- Oct 4, 2010, 5:49:20 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/task/indexSolrTask.class.php
r1555 r1650 17 17 $this->name = 'Solr'; 18 18 $this->briefDescription = 'Index db value on solr'; 19 $this->addOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', ' test');19 $this->addOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'prod'); 20 20 $this->addOption('app', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'frontend'); 21 21 $this->addOption('removeAll', null, sfCommandOption::PARAMETER_OPTIONAL, 'Drop solr database (=no|yes no default)', 'no'); … … 60 60 protected function execute($arguments = array(), $options = array()) 61 61 { 62 $this->configuration = sfProjectConfiguration::getApplicationConfiguration($options['app'], $options['dev'], true); 62 63 $manager = new sfDatabaseManager($this->configuration); 63 64
Note: See TracChangeset
for help on using the changeset viewer.