line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chef::Knife::Cmd::Search; |
2
|
6
|
|
|
6
|
|
18
|
use Moo; |
|
6
|
|
|
|
|
5
|
|
|
6
|
|
|
|
|
23
|
|
3
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
1046
|
use Chef::Knife::Cmd::Node::RunList; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
714
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has knife => (is => 'ro', required => 1, handles => [qw/handle_options run/]); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub node { |
9
|
0
|
|
|
0
|
0
|
|
my ($self, $query, %options) = @_; |
10
|
0
|
|
|
|
|
|
my @opts = $self->handle_options(%options); |
11
|
0
|
|
|
|
|
|
my @cmd = (qw/knife search node/, $query, @opts); |
12
|
0
|
|
|
|
|
|
$self->run(@cmd); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub client { |
16
|
0
|
|
|
0
|
0
|
|
my ($self, $query, %options) = @_; |
17
|
0
|
|
|
|
|
|
my @opts = $self->handle_options(%options); |
18
|
0
|
|
|
|
|
|
my @cmd = (qw/knife search client/, $query, @opts); |
19
|
0
|
|
|
|
|
|
$self->run(@cmd); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |