Esempio n. 1
0
 /**
  * Task should be skipped?
  *
  * @return bool
  *   Whether the task should be skipped or not?
  */
 protected function skip()
 {
     // Only update translations outside of Acquia environments.
     // This is currently needed, because the installed Drush version at Acquia
     // does not support this command yet.
     // FIXME Make this command workin in Acquia environments.
     return Environment::isAcquia(Environment::detect());
 }
Esempio n. 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';
         }
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function skip()
 {
     return parent::skip() || Environment::isAcquia($this->environment);
 }