pakeApp::load_pakefile PHP Method

load_pakefile() public method

public load_pakefile ( )
    public function load_pakefile()
    {
        $start = $here = getcwd();
        while (!$this->have_pakefile()) {
            chdir('..');
            if (getcwd() == $here || $this->nosearch) {
                chdir($start);
                throw new pakeException('No pakefile found (looking for: ' . join(', ', $this->PAKEFILES) . ')');
            }
            $here = getcwd();
        }
        require $this->pakefile;
        chdir($start);
    }