App-EC2Cssh
view release on metacpan or search on metacpan
lib/App/EC2Cssh.pm view on Meta::CPAN
}
unless( @files ){
die "Cannot find any config files amongst ".join(', ' , @candidates )."\n";
}
return \@files;
}
sub _build_ec2{
my ($self) = @_;
# Hack so we never verify Amazon's host. Whilst still keeping HTTPS
IO::Socket::SSL::set_defaults( SSL_verify_callback => sub{ return 1; } );
my $ec2 = Net::Amazon::EC2->new({ %{ $self->config()->{ec2_config} || die "No ec2_config in config\n" } , ssl => 1 } );
return $ec2;
}
sub main{
my ($self) = @_;
my @hosts;
my %hostnames = ();
$log->info("Listing instances for set='".$self->set()."'");
( run in 0.232 second using v1.01-cache-2.11-cpan-73692580452 )