mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-18 13:46:40 +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