示例#1
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     return Drush::exec()->arg('sql-cli')->arg('<')->arg(escapeshellarg($this->filepath))->run();
 }
示例#2
0
 /**
  * Return Drush executable.
  *
  * @return \Robo\Task\Base\Exec
  */
 protected function exec()
 {
     return Drush::exec();
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     return Drush::exec()->arg('sql-dump')->arg('>')->arg(escapeshellarg($this->filepath))->option('ordered-dump')->option('extra=--skip-comments')->option('structure-tables-list=' . escapeshellarg(implode(',', $this->getStructureOnlyTableList())))->run();
 }