diff --git a/composer.json b/composer.json index aa5b468..aec6a5a 100644 --- a/composer.json +++ b/composer.json @@ -23,11 +23,11 @@ "prefer-stable": true, "license": "GPL-2.0-or-later", "require": { - "php": ">=5.6.0", + "php": ">7.3", "composer/composer": "^1.4", "consolidation/robo": "^1.0", "symfony/filesystem": "^3.2", - "drush/drush": "^8.1" + "drush/drush": "~9.0||~10.0" }, "autoload": { "psr-4": { diff --git a/scripts/update-tester.php b/scripts/update-tester.php index 117dc63..014cb99 100755 --- a/scripts/update-tester.php +++ b/scripts/update-tester.php @@ -208,9 +208,9 @@ public function testUpdate( $drushCmd->dir($absoluteDestinationDocroot); $drushCmd->printOutput(FALSE); $drushCmd - ->arg('status') + ->arg('core-status') ->option('pipe') - ->option('show-passwords'); + ->option('fields', 'db-password,drupal-version,uri,db-driver,db-hostname,db-port,db-username,db-name,db-status,bootstrap,theme,admin-theme,php-bin,php-conf,php-os,drush-script,drush-version,drush-temp,drush-conf,install-profile,root,site,files,private,temp', '='); /** @var \Robo\Result $resultStatus */ $resultStatus = $drushCmd->run(); diff --git a/src/Task/CloneSite.php b/src/Task/CloneSite.php index 11e298c..c396f02 100644 --- a/src/Task/CloneSite.php +++ b/src/Task/CloneSite.php @@ -101,9 +101,9 @@ protected function getSourceSiteStatus() { $drushCmd->dir(DocrootResolver::getDocroot(realpath($this->getSource()))); $drushCmd - ->arg('status') + ->arg('core-status') ->option('pipe') - ->option('show-passwords'); + ->option('fields', 'db-password,drupal-version,uri,db-driver,db-hostname,db-port,db-username,db-name,db-status,bootstrap,theme,admin-theme,php-bin,php-conf,php-os,drush-script,drush-version,drush-temp,drush-conf,install-profile,root,site,files,private,temp', '='); /** @var \Robo\Result $result */ $result = $drushCmd->run(); @@ -134,9 +134,9 @@ protected function getDestinationSiteStatus() { $drushCmd->dir(DocrootResolver::getDocroot($this->getDestination())); $drushCmd - ->arg('status') + ->arg('core-status') ->option('pipe') - ->option('show-passwords'); + ->option('fields', 'db-password,drupal-version,uri,db-driver,db-hostname,db-port,db-username,db-name,db-status,bootstrap,theme,admin-theme,php-bin,php-conf,php-os,drush-script,drush-version,drush-temp,drush-conf,install-profile,root,site,files,private,temp', '='); /** @var \Robo\Result $result */ $result = $drushCmd->run(); diff --git a/src/Task/Drupal/CloneFiles.php b/src/Task/Drupal/CloneFiles.php index f686007..c764a09 100644 --- a/src/Task/Drupal/CloneFiles.php +++ b/src/Task/Drupal/CloneFiles.php @@ -65,9 +65,7 @@ public function run() { 'rsync', realpath($this->source) . '/', realpath($this->destination) . '/', - ]) - ->option('include-conf') - ->option('include-vcs'); + ]); return $drushCmd->run(); }