src/Tasks.php
public function importLocal() {
    $project_properties = $this->getProjectProperties();

    $drush_commands    = [
      'drush_import_database' => 'zcat < ../vendor/database.sql.gz | drush @self sqlc # Importing local copy of db.'
    ];
    $database_import = $this->taskExec(implode(' && ', $drush_commands))->dir($project_properties['web_root'])->run();

    if ($database_import->wasSuccessful()) {
      return TRUE;
    }
    else {
      $this->yell('Could not read vendor/database.sql.gz into your local database. See if the command "zcat < vendor/database.sql.gz | drush @self sqlc" works outside of robo.');
      return FALSE;
    }
  }
public function importLocal() {
    $project_properties = $this->getProjectProperties();

    $drush_commands    = [
      'drush_import_database' => 'zcat < ../vendor/database.sql.gz | drush @self sqlc # Importing local copy of db.'
    ];
    $database_import = $this->taskExec(implode(' && ', $drush_commands))->dir($project_properties['web_root'])->run();

    if ($database_import->wasSuccessful()) {
      return TRUE;
    }
    else {
      $this->yell('Could not read vendor/database.sql.gz into your local database. See if the command "zcat < vendor/database.sql.gz | drush @self sqlc" works outside of robo.');
      return FALSE;
    }
  }
public function importLocal ( ) { $ project_properties = $ this -> getProjectProperties ( ) ; $ drush_commands = [ 'drush_import_database' => 'zcat < ../vendor/database.sql.gz | drush @self sqlc # Importing local copy of db.' ] ; $ database_import = $ this -> taskExec ( implode ( ' && ' , $ drush_commands ) ) -> dir ( $ project_properties [ 'web_root' ] ) -> run ( ) ; if ( $ database_import -> wasSuccessful ( ) ) { return TRUE ; } else { $ this -> yell ( 'Could not read vendor/database.sql.gz into your local database. See if the command "zcat < vendor/database.sql.gz | drush @self sqlc" works outside of robo.' ) ; return FALSE ; } }
Imports a local database.

@return bool
True if import succeeded.
Imports a local database .