public function execute()
{
$newVersion = Context::getParam('new-version');
$composerFile = Context::getParam('project-root') . '/composer.json';
if (!file_exists($composerFile)) {
throw new \Liip\RMT\Exception("Impossible to file the composer file ({$composerFile})");
}
$fileContent = file_get_contents($composerFile);
$fileContent = preg_replace('/("version":[^,]*,)/', '"version": "' . $newVersion . '",', $fileContent);
file_put_contents($composerFile, $fileContent);
$this->confirmSuccess();
}