mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-01 21:32:16 +02:00
Merge branch 'release/1.0.8'
This commit is contained in:
commit
4d2f7f1447
31
Mage/Task/BuiltIn/Composer/DownloadTask.php
Normal file
31
Mage/Task/BuiltIn/Composer/DownloadTask.php
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue