Development

Changeset 33312

You must first sign up to be able to contribute.

Changeset 33312

Show
Ignore:
Timestamp:
01/26/12 16:08:57 (3 years ago)
Author:
johnnyoffline
Message:

created default parameters for sync content to be

frontend dev FROM prod@production

to save my fingers from having to type this all of the time

this is a reasonable default behavior

I tested and can confirm that the task still works if you type out the full set of commands to sync from another remote environment (staging@staging)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSyncContentPlugin/trunk/lib/task/synccontentTask.class.php

    r33196 r33312  
    1818  protected function configure() 
    1919  { 
     20     
    2021    $this->addArguments(array( 
    2122      new sfCommandArgument('application',  
    22         sfCommandArgument::REQUIRED,  
    23         'The application name ("frontend")'), 
     23        sfCommandArgument::OPTIONAL,  
     24        'The application name ("frontend")', 
     25        'frontend'), 
    2426      new sfCommandArgument('env',  
    25         sfCommandArgument::REQUIRED,  
    26         'The local environment ("dev")'), 
     27        sfCommandArgument::OPTIONAL,  
     28        'The local environment ("dev")', 
     29        'dev'), 
    2730      new sfCommandArgument('direction',  
    28         sfCommandArgument::REQUIRED,  
    29         'Either "from" or "to"; when you specify "from" content is copied FROM the remote site, when you specify "to" content is copied TO the remote site'), 
     31        sfCommandArgument::OPTIONAL,  
     32        'Either "from" or "to"; when you specify "from" content is copied FROM the remote site, when you specify "to" content is copied TO the remote site', 
     33        'from'), 
    3034      new sfCommandArgument('remoteenv', 
    31         sfCommandArgument::REQUIRED,  
    32         'The remote environment and site. The site name must be defined in properties.ini'))); 
     35        sfCommandArgument::OPTIONAL,  
     36        'The remote environment and site. The site name must be defined in properties.ini', 
     37        'prod@production'))); 
     38 
    3339 
    3440    $this->addOptions(array(