本文整理汇总了PHP中Release::setVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP Release::setVersion方法的具体用法?PHP Release::setVersion怎么用?PHP Release::setVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Release
的用法示例。
在下文中一共展示了Release::setVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: importRelease
private function importRelease(SmartSimpleXmlElement $releaseContainer)
{
$release = new Release();
$release->setPage(isset($releaseContainer['page']) ? (string) $releaseContainer['page'] : '/downloads.html');
$release->setDate(new Date((string) $releaseContainer->date));
$release->setVersion((string) $releaseContainer->version);
$release->setAbout($releaseContainer->about->p->toDomNode());
$this->addRelease($release, isset($releaseContainer['latest']) && 'true' == $releaseContainer['latest']);
}
示例2: Release
}
$this->exe('cd %s && pear package && mv *.tgz ./packages/', $this->dir);
$this->exe('cd %s && git add ./packages/*.tgz', $this->dir);
$this->exe('cd %s && git commit -am "Releasing %s" ', $this->dir, $this->version);
// Overwrite full tag && push
$this->Scm->makeTag($this->version, 'HEAD', 'Released new version', true);
}
}
$Release = new Release(array('package-name' => 'System_Daemon', 'log-file' => '/var/log/release.log', 'log-file-level' => 'info', 'app-root' => dirname(__FILE__)));
switch (@$argv[1]) {
case 'changelog':
$Release->{$argv[1]}();
break;
case 'bake':
// @todo remove false
$Release->setVersion(@$argv[2]);
$Release->{$argv[1]}();
break;
default:
if (@$argv[2] === 'all') {
$tags = $Release->Scm->tags();
} else {
$tags = (array) @$argv[2];
}
if (!count($tags)) {
$Release->err('No tags specified?');
exit(1);
}
foreach ($tags as $tag) {
$Release->setVersion($tag);
if (!method_exists($Release, @$argv[1])) {