src/Rocketeer/Services/Connections/Shell/Modules/Flow.php
public function setupIfNecessary()
    {
        // Check if local is ready for deployment
        return $this->modulable->on('local', function () {
            $primer = $this->modulable->executeTask('Primer');

            return $primer ?: $this->modulable->halt('Project is not ready for deploy. You were almost fired.');
        });

        if (!$this->isSetup()) {
            $this->explainer->error('Server is not ready, running Setup task');

            return $this->modulable->executeTask('Setup');
        }
    }
public function setupIfNecessary()
    {
        // Check if local is ready for deployment
        return $this->modulable->on('local', function () {
            $primer = $this->modulable->executeTask('Primer');

            return $primer ?: $this->modulable->halt('Project is not ready for deploy. You were almost fired.');
        });

        if (!$this->isSetup()) {
            $this->explainer->error('Server is not ready, running Setup task');

            return $this->modulable->executeTask('Setup');
        }
    }
public function setupIfNecessary ( ) { // Check if local is ready for deployment return $ this -> modulable -> on ( 'local' , function ( ) { $ primer = $ this -> modulable -> executeTask ( 'Primer' ) ; return $ primer ? : $ this -> modulable -> halt ( 'Project is not ready for deploy. You were almost fired.' ) ; } ) ; if ( ! $ this -> isSetup ( ) ) { $ this -> explainer -> error ( 'Server is not ready, running Setup task' ) ; return $ this -> modulable -> executeTask ( 'Setup' ) ; } }
Setup the server if necessary.

@return bool
Setup the server if necessary .