[Nostromo] Refactor Composer SelfUpdate

This commit is contained in:
Andrés Montañez
2017-02-11 02:01:49 -03:00
parent f7448e39e7
commit 67c3a23bbb
2 changed files with 2 additions and 36 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['version']);
$cmdUpdate = sprintf('%s self-update', $options['path']);
/** @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', 'version' => '', 'days' => 60],
['path' => 'composer', 'days' => 60],
$this->runtime->getMergedOption('composer'),
$this->options
);