line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Deploy::Job; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
32689198
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
88
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
100
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
10
|
use English qw(-no_match_vars); |
|
3
|
|
|
|
|
36
|
|
|
3
|
|
|
|
|
29
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
0
|
|
|
0
|
0
|
|
my ($class, %params) = @_; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $self = { |
12
|
|
|
|
|
|
|
uuid => $params{data}->{uuid}, |
13
|
|
|
|
|
|
|
requires => $params{data}->{requires}, |
14
|
|
|
|
|
|
|
checks => $params{data}->{checks}, |
15
|
|
|
|
|
|
|
actions => $params{data}->{actions}, |
16
|
|
|
|
|
|
|
associatedFiles => $params{associatedFiles} |
17
|
0
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
bless $self, $class; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return $self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub checkWinkey { |
26
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
27
|
|
|
|
|
|
|
|
28
|
0
|
0
|
|
|
|
|
return 1 unless $self->{requires}{winkey}; |
29
|
|
|
|
|
|
|
|
30
|
0
|
0
|
|
|
|
|
return unless $OSNAME eq 'MSWin32' |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub checkFreespace { |
34
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return 1; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub getNextToProcess { |
40
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
41
|
|
|
|
|
|
|
|
42
|
0
|
0
|
|
|
|
|
return unless $self->{actions}; |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
shift @{$self->{actions}}; |
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |