public function setupDrushAlias($exclude_remote = false)
    {
        $project_root = ProjectX::projectRoot();

        if (!file_exists("$project_root/drush/site-aliases")) {
            $continue = $this->askConfirmQuestion(
                "Drush aliases haven't been setup for this project.\n"
                . "\nDo you want run the Drush alias setup?",
                true
            );

            if (!$continue) {
                return $this;
            }
            $this->setupDrush($exclude_remote);
        } else {
            $this->setupDrushLocalAlias();

            if (!$exclude_remote) {
                $this->setupDrushRemoteAliases();
            }
        }

        return $this;
    }
public function setupDrushAlias($exclude_remote = false)
    {
        $project_root = ProjectX::projectRoot();

        if (!file_exists("$project_root/drush/site-aliases")) {
            $continue = $this->askConfirmQuestion(
                "Drush aliases haven't been setup for this project.\n"
                . "\nDo you want run the Drush alias setup?",
                true
            );

            if (!$continue) {
                return $this;
            }
            $this->setupDrush($exclude_remote);
        } else {
            $this->setupDrushLocalAlias();

            if (!$exclude_remote) {
                $this->setupDrushRemoteAliases();
            }
        }

        return $this;
    }
public function setupDrushAlias ( $ exclude_remote = false ) { $ project_root = ProjectX :: projectRoot ( ) ; if ( ! file_exists ( "$project_root/drush/site-aliases" ) ) { $ continue = $ this -> askConfirmQuestion ( "Drush aliases haven't been setup for this project.\n" . "\nDo you want run the Drush alias setup?" , true ) ; if ( ! $ continue ) { return $ this ; } $ this -> setupDrush ( $ exclude_remote ) ; } else { $ this -> setupDrushLocalAlias ( ) ; if ( ! $ exclude_remote ) { $ this -> setupDrushRemoteAliases ( ) ; } } return $ this ; }
Setup Drush aliases.

@param bool $exclude_remote
Exclude the remote drush aliases from being generated.

@return self
Setup Drush aliases .