Phrozn\Runner\CommandLine\Callback\Up::updateProject PHP Method

updateProject() private method

private updateProject ( )
    private function updateProject()
    {
        list($in, $out) = $this->getPaths();
        $this->autoloadPlugins($in);
        ob_start();
        $this->out($this->getHeader());
        $this->out("Starting static site compilation.\n");
        $proceed = true;
        if (!is_dir($in)) {
            $this->out(self::STATUS_FAIL . "Source directory '{$in}' not found.");
            $proceed = false;
        } else {
            $this->out(self::STATUS_OK . "Source directory located: {$in}");
        }
        if (!is_dir($out)) {
            $this->out(self::STATUS_FAIL . "Destination directory '{$out}' not found.");
            $proceed = false;
        } else {
            $this->out(self::STATUS_OK . "Destination directory located: {$out}");
        }
        if ($proceed === false) {
            $this->out($this->getFooter());
            return;
        }
        $site = new Site($in, $out);
        $site->setOutputter($this->getOutputter())->compile();
        $this->out($this->getFooter());
        ob_end_clean();
    }