src/Rocketeer/Services/Builders/Modules/BinariesBuilder.php
public function buildBinary($binary)
    {
        $class = $this->modulable->findQualifiedName($binary, 'binaries');

        // If there is a class by that name
        if ($class) {
            return new $class($this->container);
        }

        // Else wrap the command in an AnonymousBinary
        $anonymous = new AnonymousBinary($this->container);
        $anonymous->setBinary($this->bash->which($binary));

        return $anonymous;
    }
public function buildBinary($binary)
    {
        $class = $this->modulable->findQualifiedName($binary, 'binaries');

        // If there is a class by that name
        if ($class) {
            return new $class($this->container);
        }

        // Else wrap the command in an AnonymousBinary
        $anonymous = new AnonymousBinary($this->container);
        $anonymous->setBinary($this->bash->which($binary));

        return $anonymous;
    }
public function buildBinary ( $ binary ) { $ class = $ this -> modulable -> findQualifiedName ( $ binary , 'binaries' ) ; // If there is a class by that name if ( $ class ) { return new $ class ( $ this -> container ) ; } // Else wrap the command in an AnonymousBinary $ anonymous = new AnonymousBinary ( $ this -> container ) ; $ anonymous -> setBinary ( $ this -> bash -> which ( $ binary ) ) ; return $ anonymous ; }
Build a binary.

@param string $binary

@return \Rocketeer\Binaries\AbstractBinary|\Rocketeer\Binaries\PackageManagers\AbstractPackageManager
Build a binary .