Changeset 10503
- Timestamp:
- 07/29/08 19:42:22 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/1.1/lib/task/project/sfProjectDeployTask.class.php
r10475 r10503 31 31 new sfCommandOption('go', null, sfCommandOption::PARAMETER_NONE, 'Do the deployment'), 32 32 new sfCommandOption('rsync-dir', null, sfCommandOption::PARAMETER_REQUIRED, 'The directory where to look for rsync*.txt files', 'config'), 33 new sfCommandOption('rsync-options', null, sfCommandOption::PARAMETER_OPTIONAL, 'To options to pass to the rsync executable', 'azC'),34 33 )); 35 34 … … 76 75 77 76 [./symfony project:deploy --go --rsync-dir=config/production production|INFO] 78 79 Last, you can specify the options passed to the rsync executable, using the80 [rsync-options|INFO] option (defaults are [-azC|INFO]):81 82 [./symfony project:deploy --go --rsync-options=avz|INFO]83 77 EOF; 84 78 } … … 141 135 else 142 136 { 143 $parameters = sprintf('-%s --force --delete', $options['rsync-options']);137 $parameters = '-azC --force --delete'; 144 138 if (file_exists($options['rsync-dir'].'/rsync_exclude.txt')) 145 139 { branches/dwhittle/1.2/lib/task/project/sfProjectDeployTask.class.php
r10475 r10503 31 31 new sfCommandOption('go', null, sfCommandOption::PARAMETER_NONE, 'Do the deployment'), 32 32 new sfCommandOption('rsync-dir', null, sfCommandOption::PARAMETER_REQUIRED, 'The directory where to look for rsync*.txt files', 'config'), 33 new sfCommandOption('rsync-options', null, sfCommandOption::PARAMETER_OPTIONAL, 'To options to pass to the rsync executable', 'azC '),33 new sfCommandOption('rsync-options', null, sfCommandOption::PARAMETER_OPTIONAL, 'To options to pass to the rsync executable', 'azC --force --delete'), 34 34 )); 35 35 … … 139 139 else 140 140 { 141 $parameters = sprintf('-%s --force --delete', $options['rsync-options']);141 $parameters = $options['rsync-options']; 142 142 if (file_exists($options['rsync-dir'].'/rsync_exclude.txt')) 143 143 {