Development

Changeset 7332

You must first sign up to be able to contribute.

Changeset 7332

Show
Ignore:
Timestamp:
02/04/08 14:58:09 (10 months ago)
Author:
fabien
Message:

fixed project:freeze / project:unfreeze tasks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/project/sfProjectFreezeTask.class.php

    r7322 r7332  
    1717 * @version    SVN: $Id$ 
    1818 */ 
    19 class sfProjectFreezeTask extends sfCommandApplicationTask 
     19class sfProjectFreezeTask extends sfBaseTask 
    2020{ 
    2121  /** 
     
    8888    file_put_contents('config/config.php.bak', $symfony_lib_dir); 
    8989    $this->changeSymfonyDirs("dirname(__FILE__).'/../lib/symfony'"); 
    90  
    91     // install the command line 
    92     $this->filesystem->copy($symfony_data_dir.'/bin/symfony.php', 'symfony.php'); 
    9390  } 
    9491 
  • branches/1.1/lib/task/project/sfProjectUnfreezeTask.class.php

    r7322 r7332  
    1717 * @version    SVN: $Id$ 
    1818 */ 
    19 class sfProjectUnfreezeTask extends sfCommandApplicationTask 
     19class sfProjectUnfreezeTask extends sfBaseTask 
    2020{ 
    2121  /** 
     
    5858    $this->filesystem->remove($finder->in(sfConfig::get('sf_data_dir').'/symfony')); 
    5959    $this->filesystem->remove(sfConfig::get('sf_data_dir').'/symfony'); 
    60     $this->filesystem->remove('symfony.php'); 
    6160    $this->filesystem->remove($finder->in(sfConfig::get('sf_web_dir').'/sf')); 
    6261    $this->filesystem->remove(sfConfig::get('sf_web_dir').'/sf'); 
  • branches/1.1/test/other/tasksTest.php

    r7330 r7332  
    120120$t->is($content, $c->get_fixture_content('test/result-harness.txt'), '"test:all" launches all unit and functional tests'); 
    121121 
    122 $content = $c->execute_command('project:freeze'); 
     122$content = $c->execute_command(sprintf('project:freeze %s', realpath(dirname(__FILE__).'/../../data'))); 
    123123$t->like(file_get_contents($c->tmp_dir.DS.'config'.DS.'config.php'), '/dirname\(__FILE__\)/', '"project:freeze" freezes symfony lib and data dir into the project directory'); 
    124124