src/VagrantTransient.php
protected function loadEnvironments()
    {
        $this->purge();
        if (false == file_exists($this->getFileName())) {
            touch($this->getFileName());
        }
        $tempEnvironments = file($this->getFileName());
        foreach ($tempEnvironments as $key => $value) {
            $value = trim($value);
            if (null != $value && '' != $value && false == is_array($value)) {
                if (true == $this->vagrentExists($value)) {
                    $this->_environments[] = $value;
                }
            }
        }
        return $this->_environments;
    }
protected function loadEnvironments()
    {
        $this->purge();
        if (false == file_exists($this->getFileName())) {
            touch($this->getFileName());
        }
        $tempEnvironments = file($this->getFileName());
        foreach ($tempEnvironments as $key => $value) {
            $value = trim($value);
            if (null != $value && '' != $value && false == is_array($value)) {
                if (true == $this->vagrentExists($value)) {
                    $this->_environments[] = $value;
                }
            }
        }
        return $this->_environments;
    }
protected function loadEnvironments ( ) { $ this -> purge ( ) ; if ( false == file_exists ( $ this -> getFileName ( ) ) ) { touch ( $ this -> getFileName ( ) ) ; } $ tempEnvironments = file ( $ this -> getFileName ( ) ) ; foreach ( $ tempEnvironments as $ key => $ value ) { $ value = trim ( $ value ) ; if ( null != $ value && '' != $ value && false == is_array ( $ value ) ) { if ( true == $ this -> vagrentExists ( $ value ) ) { $ this -> _environments [ ] = $ value ; } } } return $ this -> _environments ; }
This method loads the _environments from disk into an array

@return array
This method loads the _environments from disk into an array