mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-09 17:22:18 +02:00
32 lines
600 B
PHP
32 lines
600 B
PHP
<?php
|
|
|
|
namespace Mage\Task\BuiltIn\Composer;
|
|
|
|
use Mage\Task\ErrorWithMessageException;
|
|
|
|
class DownloadTask extends ComposerAbstractTask
|
|
{
|
|
/**
|
|
* Returns the Title of the Task
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return 'Download current version of composer [built-in]';
|
|
}
|
|
|
|
/**
|
|
* Runs the task
|
|
*
|
|
* @return boolean
|
|
* @throws ErrorWithMessageException
|
|
*/
|
|
public function run()
|
|
{
|
|
$command = "wget https://getcomposer.org/composer.phar";
|
|
$this->runCommandRemote($command);
|
|
|
|
return true;
|
|
}
|
|
}
|