ShareDir ();
use File::UserConfig ();
use Mirror::JSON ();
use LWP::Online ();
use JSAN::Index ();
use JSAN::Client ();
use JSON ();
our $VERSION = '2.04';
$VERSIO
ig}->{mirror} ) {
$self->_print("Locating closest JSAN mirror...");
my $mirror_yaml = Mirror::JSON->read( MIRROR_INIT );
my @mirrors = $mirror_yaml->mirrors;
my $mirror = $mirrors[ int rand s
,
);
}
$self;
}
sub config_file {
File::Spec->catfile($_[0]->{configdir}, 'config.json')
}
sub read_config {
my $self = shift;
my $filename = $self->config_file;