StackFormation\Blueprint::getBasePath PHP Method

getBasePath() public method

public getBasePath ( )
    public function getBasePath()
    {
        if (empty($this->blueprintConfig['basepath'])) {
            throw new \Exception("No basepath set");
        }
        if (!is_dir($this->blueprintConfig['basepath'])) {
            throw new \Exception("Invalid basepath '{$this->blueprintConfig['basepath']}'");
        }
        return $this->blueprintConfig['basepath'];
    }