} 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');