[Nostromo] Refactor Composer SelfUpdate

This commit is contained in:
Andrés Montañez
2017-02-11 01:53:22 -03:00
parent d8f2359d12
commit f7448e39e7
3 changed files with 37 additions and 2 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class SelfUpdateTask extends AbstractTask
throw new SkipException();
}
$cmdUpdate = sprintf('%s self-update %s', $options['path'], $options['release']);
$cmdUpdate = sprintf('%s self-update %s', $options['path'], $options['version']);
/** @var Process $process */
$process = $this->runtime->runCommand(trim($cmdUpdate));
@@ -83,7 +83,7 @@ class SelfUpdateTask extends AbstractTask
protected function getOptions()
{
$options = array_merge(
['path' => 'composer', 'release' => '', 'days' => 60],
['path' => 'composer', 'version' => '', 'days' => 60],
$this->runtime->getMergedOption('composer'),
$this->options
);