Development

Changeset 10467

You must first sign up to be able to contribute.

Changeset 10467

Show
Ignore:
Timestamp:
07/25/08 13:44:20 (1 year ago)
Author:
nicolas
Message:

[1.2] backport of r10466: added rsync-options option to sfProjectDeploy task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/task/project/sfProjectDeployTask.class.php

    r10465 r10467  
    3131      new sfCommandOption('go', null, sfCommandOption::PARAMETER_NONE, 'Do the deployment'), 
    3232      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'), 
    3334    )); 
    3435 
     
    7576 
    7677  [./symfony project:deploy --go --rsync-dir=config/production production|INFO] 
     78 
     79Last, 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] 
    7783EOF; 
    7884  } 
     
    133139    else 
    134140    { 
    135       $parameters = '-azC --force --delete'
     141      $parameters = sprintf('-%s --force --delete', $options['rsync-options'])
    136142      if (file_exists($options['rsync-dir'].'/rsync_exclude.txt')) 
    137143      { 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.