line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
2
|
|
|
|
|
|
|
# @class : Chef::Rest::Client::cookbook_versions # |
3
|
|
|
|
|
|
|
# @author : Bhavin Patel # |
4
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Chef::REST::Client::cookbook_versions; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
709
|
use Chef::REST::Client::cookbook_version; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
134
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$Chef::REST::Client::cookbook_versions::VERSION = 1.0; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
15
|
0
|
|
|
|
|
|
my $list_of_cookbook_versions = shift; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
foreach my $v (@$list_of_cookbook_versions ) |
18
|
|
|
|
|
|
|
{ |
19
|
0
|
|
|
|
|
|
push @{ '___cookbook_versions___' } |
|
0
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
, new Chef::REST::Client::cookbook_version( |
21
|
|
|
|
|
|
|
'url' => $v->{'url' }, |
22
|
|
|
|
|
|
|
'version' => $v->{'version'} |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
|
|
|
return \@{'___cookbook_versions___'}; |
|
0
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Chef::REST::Client::cookbook_versions |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1.0 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SYNOPSIS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
my $obj = new Chef::REST::Client::cookbook_versions |
43
|
|
|
|
|
|
|
( @list_of_cookbook_versions); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
used internally by other classes like L |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 METHODS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 Constructor |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
returns array of L objects |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 KNOWN BUGS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SUPPORT |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
open a github ticket or email comments to Bhavin Patel |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This Software is free to use , licensed under : The Artisic License 2.0 (GPL Compatible) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |