public function release($version = null, $site = null)
    {
        $this->yell("Releasing Peridot");

        $this->taskExec("git pull upstream master")->run();

        $bump = $this->version($version);
        $this->phar($site);
        $this->docs($site);


        $this->taskExec('git commit -am "release ' . $bump . '"')->run();
        $this->taskExec('git tag -a ' . $bump . ' -m "release ' . $bump . '"')->run();
        $this->taskExec("git push upstream $bump")->run();
        $this->taskExec("git push upstream master")->run();

        $this->publish($site);
    }
public function release($version = null, $site = null)
    {
        $this->yell("Releasing Peridot");

        $this->taskExec("git pull upstream master")->run();

        $bump = $this->version($version);
        $this->phar($site);
        $this->docs($site);


        $this->taskExec('git commit -am "release ' . $bump . '"')->run();
        $this->taskExec('git tag -a ' . $bump . ' -m "release ' . $bump . '"')->run();
        $this->taskExec("git push upstream $bump")->run();
        $this->taskExec("git push upstream master")->run();

        $this->publish($site);
    }
public function release ( $ version = null , $ site = null ) { $ this -> yell ( "Releasing Peridot" ) ; $ this -> taskExec ( "git pull upstream master" ) -> run ( ) ; $ bump = $ this -> version ( $ version ) ; $ this -> phar ( $ site ) ; $ this -> docs ( $ site ) ; $ this -> taskExec ( 'git commit -am "release ' . $ bump . '"' ) -> run ( ) ; $ this -> taskExec ( 'git tag -a ' . $ bump . ' -m "release ' . $ bump . '"' ) -> run ( ) ; $ this -> taskExec ( "git push upstream $bump" ) -> run ( ) ; $ this -> taskExec ( "git push upstream master" ) -> run ( ) ; $ this -> publish ( $ site ) ; }
Release a new version of Peridot.

@param null|string $version the new version number
@param null|string $site path to the Peridot site to build
Release a new version of Peridot .