Compare commits

..

No commits in common. "2744ab588eea2effa9d47474b17c2ae9ae6dcea7" and "518d82b71d2b478591a69d4da8b4da790eb19941" have entirely different histories.

View File

@ -4,6 +4,7 @@
require 'getwebsites.cfg.php';
// Get password from the "pass" utility.
exec('/usr/bin/pass ls megaphone/crm/restpassword', $password);
$password = $password[0];
$headers = login($password);
@ -26,7 +27,7 @@ foreach ($websites as $website) {
$websiteList[$alias]['ssh'] = $website['server'];
}
else {
$alias = '@' . $aliasName . '-' . strtolower($website['env']);
$alias = '@' . $website['client'] . '-' . strtolower($website['env']);
}
$websiteList[$alias]['path'] = $website['webroot'];
$websiteList[$alias]['url'] = $website['primary_url'];
@ -35,6 +36,7 @@ foreach ($websites as $website) {
ksort($websiteList);
$aliasesFile = '/etc/wp-cli.yml';
$yaml = yaml_emit_file($aliasesFile, $websiteList);
var_dump($yaml);