mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 16:54:08 +01:00
1. Add AskPasswordGetter (ask password before connecting) 2. Add CallabackPasswordGetter (gets password with call callbacks, Closures)
18 lines
509 B
PHP
18 lines
509 B
PHP
<?php
|
|
|
|
// Search and include "autoload" file
|
|
$vendorDir = __DIR__ . '/../../..';
|
|
|
|
if (file_exists($file = $vendorDir . '/autoload.php')) {
|
|
require_once $file;
|
|
} else if (file_exists($file = './vendor/autoload.php')) {
|
|
require_once $file;
|
|
} else {
|
|
throw new \RuntimeException("Not found composer autoload");
|
|
}
|
|
|
|
// Include common files
|
|
require_once __DIR__ . '/../src/functions.php';
|
|
require_once __DIR__ . '/src/Helper/DeployerHelper.php';
|
|
require_once __DIR__ . '/recipe/Helper/RecipeTester.php';
|