line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::ResultSet::Host; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::ResultSet::Host::VERSION = '5.0.11'; |
4
|
7
|
|
|
7
|
|
19631
|
use 5.010; |
|
7
|
|
|
|
|
25
|
|
5
|
7
|
|
|
7
|
|
33
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
131
|
|
6
|
7
|
|
|
7
|
|
28
|
use warnings; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
188
|
|
7
|
|
|
|
|
|
|
|
8
|
7
|
|
|
7
|
|
34
|
use parent 'DBIx::Class::ResultSet'; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
52
|
|
9
|
7
|
|
|
7
|
|
413
|
use Data::Dumper; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
605
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
1
|
|
sub free_hosts { shift->search({ free => 1, active => 1 }) } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding UTF-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::ResultSet::Host |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 free_hosts |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Return hosts that are active and free. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 AUTHORS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=over 4 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item * |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item * |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=back |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is free software, licensed under: |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |