public function getDeploymentNames($path = null)
    {
        $path = $this->getDeploymentsBasePath($path);
        $files = glob(Files::concatenatePaths([$path, '*.php']));

        return array_map(function ($file) use ($path) {
            return substr($file, strlen($path) + 1, -4);
        }, $files);
    }
public function getDeploymentNames($path = null)
    {
        $path = $this->getDeploymentsBasePath($path);
        $files = glob(Files::concatenatePaths([$path, '*.php']));

        return array_map(function ($file) use ($path) {
            return substr($file, strlen($path) + 1, -4);
        }, $files);
    }
public function getDeploymentNames ( $ path = null ) { $ path = $ this -> getDeploymentsBasePath ( $ path ) ; $ files = glob ( Files :: concatenatePaths ( [ $ path , '*.php' ] ) ) ; return array_map ( function ( $ file ) use ( $ path ) { return substr ( $ file , strlen ( $ path ) + 1 , - 4 ) ; } , $ files ) ; }
Get available deployment names

Will look up all .php files in the directory ./.surf/ or the given path if specified.

@param string $path

@return array
Get available deployment names