line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
2
|
|
|
|
|
|
|
# @class : Chef::Rest::Client::search # |
3
|
|
|
|
|
|
|
# @author : Bhavin Patel # |
4
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Chef::REST::Client::search; |
7
|
1
|
|
|
1
|
|
1007
|
use parent qw { Chef::REST::Client::EndPoints }; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
694
|
use Chef::REST::Client::environments; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
116
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$Chef::REST::Client::search::VERSION = 1.0; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub list |
13
|
|
|
|
|
|
|
{ |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
0
|
|
|
|
|
|
my $search = $self->___data___; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return $search; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub details |
21
|
|
|
|
|
|
|
{ |
22
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
23
|
0
|
|
|
|
|
|
my $data = $self->___data___; |
24
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
|
|
|
return $self->raw() unless ref $data eq 'HASH'; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return $data; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Chef::REST::Client::search |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1.0 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
use Chef::REST::Client::search; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
$obj->search->list; |
48
|
|
|
|
|
|
|
$obj->search( 'secrets' , { q => 'id:centrify', rows => 1 } )->details; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Class that represents collection of Chef seach feature. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 METHODS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 list |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
return list of searches. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 details |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
return details about a particular search. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 KNOWN BUGS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SUPPORT |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
open a github ticket or email comments to Bhavin Patel |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This Software is free to use , licensed under : The Artisic License 2.0 (GPL Compatible) |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |