Changeset 10466
- Timestamp:
- 07/25/08 13:42:28 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/task/project/sfProjectDeployTask.class.php
r10464 r10466 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 34 )); 34 35 … … 75 76 76 77 [./symfony project:deploy --go --rsync-dir=config/production production|INFO] 78 79 Last, you can specify the options passed to the rsync executable, using the 80 [rsync-options|INFO] option (defaults are [-azC|INFO]): 81 82 [./symfony project:deploy --go --rsync-options=avz|INFO] 77 83 EOF; 78 84 } … … 133 139 else 134 140 { 135 $parameters = '-azC --force --delete';141 $parameters = sprintf('-%s --force --delete', $options['rsync-options']); 136 142 if (file_exists($options['rsync-dir'].'/rsync_exclude.txt')) 137 143 {