Changeset 7332
- Timestamp:
- 02/04/08 14:58:09 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/task/project/sfProjectFreezeTask.class.php
r7322 r7332 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfProjectFreezeTask extends sf CommandApplicationTask19 class sfProjectFreezeTask extends sfBaseTask 20 20 { 21 21 /** … … 88 88 file_put_contents('config/config.php.bak', $symfony_lib_dir); 89 89 $this->changeSymfonyDirs("dirname(__FILE__).'/../lib/symfony'"); 90 91 // install the command line92 $this->filesystem->copy($symfony_data_dir.'/bin/symfony.php', 'symfony.php');93 90 } 94 91 branches/1.1/lib/task/project/sfProjectUnfreezeTask.class.php
r7322 r7332 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfProjectUnfreezeTask extends sf CommandApplicationTask19 class sfProjectUnfreezeTask extends sfBaseTask 20 20 { 21 21 /** … … 58 58 $this->filesystem->remove($finder->in(sfConfig::get('sf_data_dir').'/symfony')); 59 59 $this->filesystem->remove(sfConfig::get('sf_data_dir').'/symfony'); 60 $this->filesystem->remove('symfony.php');61 60 $this->filesystem->remove($finder->in(sfConfig::get('sf_web_dir').'/sf')); 62 61 $this->filesystem->remove(sfConfig::get('sf_web_dir').'/sf'); branches/1.1/test/other/tasksTest.php
r7330 r7332 120 120 $t->is($content, $c->get_fixture_content('test/result-harness.txt'), '"test:all" launches all unit and functional tests'); 121 121 122 $content = $c->execute_command( 'project:freeze');122 $content = $c->execute_command(sprintf('project:freeze %s', realpath(dirname(__FILE__).'/../../data'))); 123 123 $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'); 124 124