Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1005
diagnostic.php
Active
Public
Actions
Authored by
epriestley
on Nov 27 2013, 6:42 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F85541: diagnostic.php
Nov 27 2013, 6:42 PM
2013-11-27 18:42:44 (UTC+0)
Subscribers
None
<?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
"
;
}
Event Timeline
Log In to Comment