File Coverage

blib/lib/Chef/Knife/Cmd/Node/From.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 9 10 90.0


line stmt bran cond sub pod time code
1             package Chef::Knife::Cmd::Node::From;
2 6     6   17 use Moo;
  6         8  
  6         22  
3              
4             has knife => (is => 'ro', required => 1, handles => [qw/run handle_options/]);
5              
6             sub file {
7 1     1 0 662 my ($self, $file, %options) = @_;
8              
9 1         4 my @opts = $self->handle_options(%options);
10 1         4 my @cmd = (qw/knife node from file/, $file, @opts);
11 1         3 $self->run(@cmd);
12             }
13              
14             1;