Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
rootrdap
Commits
c80185b6
Commit
c80185b6
authored
Jul 25, 2022
by
Gavin Brown
Browse files
generate an "all" search result file
parent
34c86098
Changes
1
Hide whitespace changes
Inline
Side-by-side
rootrdap.pl
View file @
c80185b6
...
...
@@ -66,6 +66,11 @@ my $status = {
print
STDERR
"
Generating files
\n
";
my
$all
=
{
'
rdapConformance
'
=>
[
'
rdap_level_0
'
],
'
domainSearchResults
'
=>
[]
,
};
foreach
my
$tld
(
@tlds
)
{
my
$file
=
sprintf
('
%s/%s.txt
',
$dir
,
$tld
);
my
@data
;
...
...
@@ -344,6 +349,18 @@ foreach my $tld (@tlds) {
printf
(
STDERR
"
Unable to write to '%s': %s
\n
",
$jfile
,
$!
);
exit
(
1
);
}
push
(
@
{
$all
->
{'
domainSearchResults
'}},
$data
);
}
#
# write RDAP object to disk
#
my
$jfile
=
sprintf
('
%s/_all.json
',
$dir
);
if
(
!
write_file
(
$jfile
,
$json
->
encode
(
$all
)))
{
printf
(
STDERR
"
Unable to write to '%s': %s
\n
",
$jfile
,
$!
);
exit
(
1
);
}
print
STDERR
"
done
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment