This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2015-10-13 19:06:37 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
use v5.14;
|
|
|
|
use autodie;
|
2016-01-21 20:52:59 +01:00
|
|
|
use utf8;
|
|
|
|
use open qw/:std :utf8/;
|
2015-10-13 19:06:37 +02:00
|
|
|
use Modern::Perl;
|
|
|
|
|
|
|
|
use Data::Dump qw( dump );
|
|
|
|
|
|
|
|
use lib './lib/';
|
|
|
|
use configuration ':all';
|
|
|
|
use encryption ':all';
|
|
|
|
use app;
|
|
|
|
|
|
|
|
if( @ARGV != 1 ) {
|
|
|
|
say "usage : ./$0 domain";
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
my $dom = $ARGV[0];
|
|
|
|
|
|
|
|
eval {
|
|
|
|
my $app = app->new(get_cfg());
|
|
|
|
my $domain = $app->get_domain($dom);
|
|
|
|
dump($domain);
|
|
|
|
};
|
|
|
|
|
|
|
|
if( $@ ) {
|
|
|
|
say q{Une erreur est survenue. } . $@;
|
|
|
|
}
|