本文整理汇总了PHP中Release::prompt方法的典型用法代码示例。如果您正苦于以下问题:PHP Release::prompt方法的具体用法?PHP Release::prompt怎么用?PHP Release::prompt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Release
的用法示例。
在下文中一共展示了Release::prompt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Exception
} else {
throw new Exception($file . 'build.base.properties not exists!');
}
if ($name) {
return isset(self::$properties[$file][$name]) ? self::$properties[$file][$name] : null;
}
return self::$properties[$file];
}
}
$tag = Release::getNewTag();
echo "[1;1H[2J";
// ---------------------------------------------------------------------------------------------------------------------
// Push to pre if exists
// ---------------------------------------------------------------------------------------------------------------------
Release::header(sprintf('Release application "%s" tag "%s"', Project::name(), $tag));
$commit = Release::prompt('Choose commit to release', 'HEAD');
if (Project::havePreEnv()) {
$commands = array('git branch -f pre ' . $commit, 'git push -f origin pre:pre');
Release::display($commands);
if ($prev = Release::confirm()) {
Release::exec($commands);
}
} else {
$prev = true;
// not have pre (same as confirm)
}
// ---------------------------------------------------------------------------------------------------------------------
// Build pre
// ---------------------------------------------------------------------------------------------------------------------
if (Project::haveName() && Project::havePreEnv()) {
$commands = array('ssh ' . Project::name() . '@' . Project::name() . '.pre.brzy.cz');