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   23 use Moo;
  6         9  
  6         28  
3              
4             has knife => (is => 'ro', required => 1, handles => [qw/run handle_options/]);
5              
6             sub file {
7 1     1 0 708 my ($self, $file, %options) = @_;
8              
9 1         17 my @opts = $self->handle_options(%options);
10 1         3 my @cmd = (qw/knife node from file/, $file, @opts);
11 1         16 $self->run(@cmd);
12             }
13              
14             1;