Skip to content

Commit

Permalink
Removes extra slashes from paths and includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Jan 23, 2018
1 parent 4a82d95 commit c666278
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions bin/acquiacli-robo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$root = dirname(__DIR__);
require_once dirname(__DIR__) . '/vendor/autoload.php';
} elseif (file_exists(dirname(__DIR__) . '/../../autoload.php')) {
$root = dirname(__DIR__) . '/../../../';
$root = dirname(__DIR__) . '/../../..';
require_once dirname(__DIR__) . '/../../autoload.php';
} else {
$root = __DIR__;
Expand All @@ -28,18 +28,19 @@
$processor = new ConfigProcessor();

$globalConfig = getenv('HOME') . '/.acquiacli/acquiacli.yml';
$projectConfig = $root . '/acquiacli.yml';
$paths = [
dirname(__DIR__) . '/default.acquiacli.yml',
$globalConfig,
$root . '/acquiacli.yml',
$projectConfig,
];

foreach ($paths as $path) {
$processor->extend($loader->load($path));
}

$config->import($processor->export());
$config->set('config.project', $root . '/acquiacli.yml');
$config->set('config.project', $projectConfig);
$config->set('config.global', $globalConfig);

$input = new ArgvInput($argv);
Expand Down
2 changes: 1 addition & 1 deletion src/AcquiaCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Robo\Config\Config;
use Robo\Common\ConfigAwareTrait;
use Robo\Runner as RoboRunner;
use \Robo\Application;
use Robo\Application;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/AcquiaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ abstract class AcquiaCommand extends Tasks
/** @var \AcquiaCloudApi\CloudApi\Client $cloudapi */
protected $cloudapi;

/** Additional configuration */
/** Additional configuration. */
protected $extraConfig;

/** Regex for a valid UUID string. */
const UUIDV4 = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i';

const TASKFAILED = 'failed';
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/CloudflareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace AcquiaCli\Commands;

use \Cloudflare\API\Auth\APIKey;
use \Cloudflare\API\Adapter\Guzzle;
use Cloudflare\API\Auth\APIKey;
use Cloudflare\API\Adapter\Guzzle;
use Cloudflare\API\Endpoints\DNS;
use Cloudflare\API\Endpoints\EndpointException;
use Cloudflare\API\Endpoints\Zones;
Expand Down

0 comments on commit c666278

Please sign in to comment.