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