src/Robo/Inspector/Inspector.php
public function isDrushAliasValid($alias) {
    $bin = $this->getConfigValue('composer.bin');
    $command = "'$bin/drush' site:alias @$alias --format=json";
    return $this->executor->execute($command)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERY_VERBOSE)
      ->run()
      ->wasSuccessful();
  }
public function isDrushAliasValid($alias) {
    $bin = $this->getConfigValue('composer.bin');
    $command = "'$bin/drush' site:alias @$alias --format=json";
    return $this->executor->execute($command)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERY_VERBOSE)
      ->run()
      ->wasSuccessful();
  }
public function isDrushAliasValid ( $ alias ) { $ bin = $ this -> getConfigValue ( 'composer.bin' ) ; $ command = "'$bin/drush' site:alias @$alias --format=json" ; return $ this -> executor -> execute ( $ command ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERY_VERBOSE ) -> run ( ) -> wasSuccessful ( ) ; }
Validates a drush alias.

@param string $alias

@return bool
TRUE if alias is valid.
Validates a drush alias .