mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-11-10 23:31:01 +00:00
Merge pull request #133 from therunnergit/issue-129
Add constructor to RoboFile
This commit is contained in:
commit
b9d54a1b0a
19
RoboFile.php
19
RoboFile.php
@ -21,6 +21,19 @@ class RoboFile extends \Robo\Tasks
|
|||||||
|
|
||||||
private $cmsPath = '';
|
private $cmsPath = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->configuration = $this->getConfiguration();
|
||||||
|
|
||||||
|
$this->cmsPath = $this->getCmsPath();
|
||||||
|
|
||||||
|
// TODO make this coherent with the above initializations
|
||||||
|
$this->setExecExtension();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the Execute extension for Windows Operating System
|
* Set the Execute extension for Windows Operating System
|
||||||
*
|
*
|
||||||
@ -43,12 +56,6 @@ class RoboFile extends \Robo\Tasks
|
|||||||
*/
|
*/
|
||||||
public function runTests($use_htaccess = false)
|
public function runTests($use_htaccess = false)
|
||||||
{
|
{
|
||||||
$this->configuration = $this->getConfiguration();
|
|
||||||
|
|
||||||
$this->cmsPath = $this->getCmsPath();
|
|
||||||
|
|
||||||
$this->setExecExtension();
|
|
||||||
|
|
||||||
$this->createTestingSite($use_htaccess);
|
$this->createTestingSite($use_htaccess);
|
||||||
|
|
||||||
$this->getComposer();
|
$this->getComposer();
|
||||||
|
Loading…
Reference in New Issue
Block a user