src/VagrantTransient.php
protected function cleanEnvironments()
    {
        $environmentsWhichExist = array();
        foreach ($this->getEnvironments() as $key => $environment) {

            $msg = "Cleaning environment  from storage {$environment}";
            if (true == $this->vagrentExists($environment)) {
                $environmentsWhichExist[] = $environment;
                $msg = "Not cleaning from storage {$environment}";
            }
            $this->printLn($msg);
        }
        $this->setEnvironments($environmentsWhichExist);
        return $this;
    }
protected function cleanEnvironments()
    {
        $environmentsWhichExist = array();
        foreach ($this->getEnvironments() as $key => $environment) {

            $msg = "Cleaning environment  from storage {$environment}";
            if (true == $this->vagrentExists($environment)) {
                $environmentsWhichExist[] = $environment;
                $msg = "Not cleaning from storage {$environment}";
            }
            $this->printLn($msg);
        }
        $this->setEnvironments($environmentsWhichExist);
        return $this;
    }
protected function cleanEnvironments ( ) { $ environmentsWhichExist = array ( ) ; foreach ( $ this -> getEnvironments ( ) as $ key => $ environment ) { $ msg = "Cleaning environment  from storage {$environment}" ; if ( true == $ this -> vagrentExists ( $ environment ) ) { $ environmentsWhichExist [ ] = $ environment ; $ msg = "Not cleaning from storage {$environment}" ; } $ this -> printLn ( $ msg ) ; } $ this -> setEnvironments ( $ environmentsWhichExist ) ; return $ this ; }
This method iterates over the _environments. If there is no VagrantFile
within that environment then it is removed from the list of _environments.

@return $this
This method iterates over the _environments . If there is no VagrantFile within that environment then it is removed from the list of _environments .