line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CloudCron::TargetInput; |
2
|
2
|
|
|
2
|
|
115609
|
use Moose; |
|
2
|
|
|
|
|
400964
|
|
|
2
|
|
|
|
|
14
|
|
3
|
2
|
|
|
2
|
|
13341
|
use JSON; |
|
2
|
|
|
|
|
14395
|
|
|
2
|
|
|
|
|
10
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has command => (is => 'ro', isa => 'Str', required => 1); |
6
|
|
|
|
|
|
|
has env => (is => 'ro', isa => 'HashRef[Str]', required => 0, default => sub { {} }); |
7
|
|
|
|
|
|
|
has type => (is => 'ro', isa => 'Str', required => 0, default => sub { 'shell' }); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub json { |
10
|
8
|
|
|
8
|
0
|
13
|
my $self = shift; |
11
|
8
|
|
|
|
|
170
|
return to_json({ |
12
|
|
|
|
|
|
|
command => $self->command, |
13
|
|
|
|
|
|
|
env => $self->env, |
14
|
|
|
|
|
|
|
type => $self->type, |
15
|
|
|
|
|
|
|
}); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
19
|
|
|
|
|
|
|
1; |