public function publish($dest = null)
    {
        $this->yell('Publishing Peridot docs');
        if (!$dest) {
            $dest = __DIR__ . '/../peridot-php.github.io';
        }
        $cwd = getcwd();
        chdir($dest);
        $this->taskGitStack()
            ->add('-A')
            ->commit('auto-update')
            ->pull()
            ->push()
            ->run();
        chdir($cwd);
    }
public function publish($dest = null)
    {
        $this->yell('Publishing Peridot docs');
        if (!$dest) {
            $dest = __DIR__ . '/../peridot-php.github.io';
        }
        $cwd = getcwd();
        chdir($dest);
        $this->taskGitStack()
            ->add('-A')
            ->commit('auto-update')
            ->pull()
            ->push()
            ->run();
        chdir($cwd);
    }
public function publish ( $ dest = null ) { $ this -> yell ( 'Publishing Peridot docs' ) ; if ( ! $ dest ) { $ dest = __DIR__ . '/../peridot-php.github.io' ; } $ cwd = getcwd ( ) ; chdir ( $ dest ) ; $ this -> taskGitStack ( ) -> add ( '-A' ) -> commit ( 'auto-update' ) -> pull ( ) -> push ( ) -> run ( ) ; chdir ( $ cwd ) ; }
Publish the Peridot site

@param null|string $dest
Publish the Peridot site