Page MenuHomePhabricator

diagnostic.php

Authored By
epriestley
Nov 27 2013, 6:42 PM
Size
740 B
Referenced Files
None
Subscribers
None

diagnostic.php

<?php
require_once 'scripts/__init_script__.php';
$table = new PhabricatorRepository();
foreach (new LiskMigrationIterator($table) as $repository) {
$callsign = $repository->getCallsign();
$uri = $repository->getRemoteURI();
$uri = new PhutilURI($uri);
$proto = strtolower($uri->getProtocol());
$user = $uri->getUser();
$login = $repository->getDetail('ssh-login');
$keyfile = $repository->getDetail('ssh-keyfile');
$key = $repository->getDetail('ssh-key');
echo "Repository {$callsign}:\n";
echo " Protocol: ".$proto."\n";
echo " Has User: ".yn($user);
echo " Has Login: ".yn($login);
echo " Has Keyfile: ".yn($keyfile);
echo " Has Key: ".yn($key);
}
function yn($v) {
return ($v ? 'Y' : 'N')."\n";
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/kt/xf/hhypxor5hnf55snp
Default Alt Text
diagnostic.php (740 B)

Event Timeline