ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 12284


Ignore:
Timestamp:
Jul 15, 2009, 10:22:28 PM (11 years ago)
Author:
ShogoKawahara
Message:

#4101:added 'no-update-plugin' option to openpne:migrate task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/task/openpneMigrateTask.class.php

    r12258 r12284  
    2222      new sfCommandOption('to-version', 'v', sfCommandOption::PARAMETER_OPTIONAL, 'A version'),
    2323      new sfCommandOption('to-revision', 'r', sfCommandOption::PARAMETER_OPTIONAL, 'A revision'),
     24      new sfCommandOption('no-update-plugin', null, sfCommandOption::PARAMETER_NONE, 'Do not update plugins'),
    2425      new sfCommandOption('no-build-model', null, sfCommandOption::PARAMETER_NONE, 'Do not build model classes'),
    2526    ));
     
    5152  protected function execute($arguments = array(), $options = array())
    5253  {
    53     $this->installPlugins();
    54 
    55     $targets = array_merge(array('OpenPNE'), $this->getEnabledOpenPNEPlugin());
     54    if (!$options['no-update-plugin'])
     55    {
     56      $this->installPlugins();
     57    }
    5658
    5759    if (!$options['no-build-model'])
     
    6062    }
    6163
     64    $targets = array_merge(array('OpenPNE'), $this->getEnabledOpenPNEPlugin());
    6265    $databaseManager = new sfDatabaseManager($this->configuration);
    6366    foreach ($targets as $target)
Note: See TracChangeset for help on using the changeset viewer.