src/Robo/Commands/Deploy/DeployCommand.php
public function syncRefresh() {
    // Disable alias since we are targeting specific uri.
    $this->config->set('drush.alias', '');

    // Sync files.
    $this->config->set('sync.files', TRUE);

    foreach ($this->getConfigValue('multisites') as $multisite) {
      $this->say("Syncing $multisite...");
      if (!$this->config->get('drush.uri')) {
        $this->config->set('drush.uri', $multisite);
      }

      $this->invokeCommand('drupal:sync:db');
      $this->invokeCommand('drupal:sync:files');
      $this->invokeCommand('drupal:update');

      $this->say("Finished syncing $multisite.");
    }
  }
public function syncRefresh() {
    // Disable alias since we are targeting specific uri.
    $this->config->set('drush.alias', '');

    // Sync files.
    $this->config->set('sync.files', TRUE);

    foreach ($this->getConfigValue('multisites') as $multisite) {
      $this->say("Syncing $multisite...");
      if (!$this->config->get('drush.uri')) {
        $this->config->set('drush.uri', $multisite);
      }

      $this->invokeCommand('drupal:sync:db');
      $this->invokeCommand('drupal:sync:files');
      $this->invokeCommand('drupal:update');

      $this->say("Finished syncing $multisite.");
    }
  }
public function syncRefresh ( ) { // Disable alias since we are targeting specific uri. $ this -> config -> set ( 'drush.alias' , '' ) ; // Sync files. $ this -> config -> set ( 'sync.files' , TRUE ) ; foreach ( $ this -> getConfigValue ( 'multisites' ) as $ multisite ) { $ this -> say ( "Syncing $multisite..." ) ; if ( ! $ this -> config -> get ( 'drush.uri' ) ) { $ this -> config -> set ( 'drush.uri' , $ multisite ) ; } $ this -> invokeCommand ( 'drupal:sync:db' ) ; $ this -> invokeCommand ( 'drupal:sync:files' ) ; $ this -> invokeCommand ( 'drupal:update' ) ; $ this -> say ( "Finished syncing $multisite." ) ; } }
Syncs database and files and runs updates.

@command artifact:sync:all-sites
@aliases asas
Syncs database and files and runs updates .