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