| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
|
2
|
|
|
|
|
|
|
# @class : Chef::Rest::Client::databag # |
|
3
|
|
|
|
|
|
|
# @author : Bhavin Patel # |
|
4
|
|
|
|
|
|
|
#--------------------------------------------------------------------# |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Chef::REST::Client::databag; |
|
7
|
1
|
|
|
1
|
|
6
|
use vars qw { $AUTOLOAD }; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
12411
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$Chef::REST::Client::databag::VERSION = 1.0; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
|
12
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
|
13
|
0
|
|
|
|
|
|
my $param = {@_}; |
|
14
|
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $self = {}; |
|
16
|
0
|
|
|
|
|
|
bless $self, $class; |
|
17
|
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
$self->name( $param->{'name' }); |
|
19
|
0
|
|
|
|
|
|
$self->url( $param->{'url' }); |
|
20
|
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return $self; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub AUTOLOAD |
|
25
|
|
|
|
|
|
|
{ |
|
26
|
0
|
|
|
0
|
|
|
my $self = shift; |
|
27
|
0
|
|
|
|
|
|
my $param = shift; |
|
28
|
0
|
|
|
|
|
|
my $module = (split ('::', $AUTOLOAD))[-1]; |
|
29
|
0
|
0
|
|
|
|
|
$self->{ $module } = $param if defined $param; |
|
30
|
0
|
|
|
|
|
|
return $self->{ $module }; |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Chef::REST::Client::databag |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1.0 |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
use Chef::REST::Client::databag; |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $obj = new Chef::REST::Client::databag( 'name' => $name , 'url' => $databag_link ); |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Class representation of Chef DataBag; |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 METHODS |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 name |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sets or gets 'name' property value |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
$obj->name; |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 url |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sets or gets 'url' property value |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
$obj->url; |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 KNOWN BUGS |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 SUPPORT |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
open a github ticket or email comments to Bhavin Patel |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This Software is free to use , licensed under : The Artisic License 2.0 (GPL Compatible) |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |