src/Rocketeer/Tasks/Check.php
public function checkVcs()
    {
        // Cancel if not using any VCS
        if (mb_strtolower($this->config->getContextually('strategies.create-release')) !== 'clone') {
            return true;
        }

        $this->explainer->line('Checking presence of '.$this->vcs->getBinary());
        $results = $this->vcs->run('check');
        $this->toOutput($results);

        $isPresent = $this->status();
        if (!$isPresent) {
            $this->explainer->error($this->vcs->getBinary().' could not be found');
        }

        return $isPresent;
    }
public function checkVcs()
    {
        // Cancel if not using any VCS
        if (mb_strtolower($this->config->getContextually('strategies.create-release')) !== 'clone') {
            return true;
        }

        $this->explainer->line('Checking presence of '.$this->vcs->getBinary());
        $results = $this->vcs->run('check');
        $this->toOutput($results);

        $isPresent = $this->status();
        if (!$isPresent) {
            $this->explainer->error($this->vcs->getBinary().' could not be found');
        }

        return $isPresent;
    }
public function checkVcs ( ) { // Cancel if not using any VCS if ( mb_strtolower ( $ this -> config -> getContextually ( 'strategies.create-release' ) ) !== 'clone' ) { return true ; } $ this -> explainer -> line ( 'Checking presence of ' . $ this -> vcs -> getBinary ( ) ) ; $ results = $ this -> vcs -> run ( 'check' ) ; $ this -> toOutput ( $ results ) ; $ isPresent = $ this -> status ( ) ; if ( ! $ isPresent ) { $ this -> explainer -> error ( $ this -> vcs -> getBinary ( ) . ' could not be found' ) ; } return $ isPresent ; }
Check the presence of an VCS on the server.

@return bool
Check the presence of an VCS on the server .