2013-07-11 15:47:09 +04:00
|
|
|
<?php
|
2015-05-26 16:52:10 +03:00
|
|
|
// Search and include "autoload" file
|
2015-06-12 23:23:30 +07:00
|
|
|
$loaded = false;
|
|
|
|
|
|
|
|
foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php') as $file) {
|
|
|
|
if (file_exists($file)) {
|
|
|
|
require $file;
|
|
|
|
$loaded = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2015-05-26 16:52:10 +03:00
|
|
|
|
2015-06-12 23:23:30 +07:00
|
|
|
if (!$loaded) {
|
|
|
|
die(
|
|
|
|
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
|
|
|
|
'wget http://getcomposer.org/composer.phar' . PHP_EOL .
|
|
|
|
'php composer.phar install' . PHP_EOL
|
|
|
|
);
|
2015-05-26 16:52:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Include common files
|
2014-11-29 22:11:11 +03:00
|
|
|
require_once __DIR__ . '/../src/functions.php';
|
2014-12-13 17:16:32 +03:00
|
|
|
require_once __DIR__ . '/src/Helper/DeployerHelper.php';
|
2015-02-15 13:58:49 +03:00
|
|
|
require_once __DIR__ . '/recipe/Helper/RecipeTester.php';
|