示例#1
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     Environment::set($this->environment);
     if (Environment::isDevdesktop()) {
         $this->ensureDevdesktopPath();
     }
     return Result::success($this);
 }
示例#2
0
 /**
  * Return Drush binary path.
  *
  * @return string
  *   The path to the Drush binary.
  */
 public static function drush()
 {
     // Use 'drush8' binary in Acquia environments.
     if (Environment::isAcquia(Environment::detect())) {
         return 'drush8';
     } else {
         if (Environment::isDevdesktop() && isset(self::$devdesktopPath) && file_exists(self::$devdesktopPath . '/tools/drush')) {
             return static::$devdesktopPath . '/tools/drush';
         } else {
             return static::root() . '/bin/drush';
         }
     }
 }
 /**
  * Creation of database connection details should be skipped?
  *
  * @return bool
  *  Whether the creation of database connection details should be skipped
  */
 protected function skipDatabaseConnection()
 {
     return Environment::isDevdesktop();
 }