src/Rocketeer/Services/Connections/Shell/Bash.php
public function getConnection()
    {
        if ($this->rocketeer->isLocal()) {
            return $this->connections->getConnection('local');
        }

        return $this->connections->getCurrentConnection();
    }
public function getConnection()
    {
        if ($this->rocketeer->isLocal()) {
            return $this->connections->getConnection('local');
        }

        return $this->connections->getCurrentConnection();
    }
public function getConnection ( ) { if ( $ this -> rocketeer -> isLocal ( ) ) { return $ this -> connections -> getConnection ( 'local' ) ; } return $ this -> connections -> getCurrentConnection ( ) ; }
Get which Connection to call commands with.

@return \Rocketeer\Services\Connections\Connections\ConnectionInterface
Get which Connection to call commands with .