line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chef::Knife::Cmd::DataBag; |
2
|
6
|
|
|
6
|
|
26
|
use Moo; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
43
|
|
3
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
1369
|
use Chef::Knife::Cmd::Node::RunList; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
718
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has knife => (is => 'ro', required => 1, handles => [qw/handle_options run/]); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub show { |
9
|
0
|
|
|
0
|
0
|
|
my ($self, $data_bag, $item, %options) = @_; |
10
|
0
|
|
|
|
|
|
my @opts = $self->handle_options(%options); |
11
|
0
|
|
|
|
|
|
my @cmd = (qw/knife data bag show/, $data_bag); |
12
|
0
|
0
|
|
|
|
|
push @cmd, $item if $item; |
13
|
0
|
|
|
|
|
|
push @cmd, @opts; |
14
|
0
|
|
|
|
|
|
$self->run(@cmd); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |