File Coverage

blib/lib/Chef/Knife/Cmd/EC2.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 10 100.0


line stmt bran cond sub pod time code
1             package Chef::Knife::Cmd::EC2;
2 6     6   21 use Moo;
  6         5  
  6         23  
3              
4 6     6   2967 use Chef::Knife::Cmd::EC2::Server;
  6         9  
  6         380  
5              
6             has knife => (is => 'ro', required => 1, handles => [qw/handle_options run/]);
7             has server => (is => 'lazy');
8              
9 1     1   997 sub _build_server { Chef::Knife::Cmd::EC2::Server->new(knife => shift) }
10              
11             1;